Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkSimpleTextOverlayWidget Class Reference

#include <QmitkSimpleTextOverlayWidget.h>

Inheritance diagram for QmitkSimpleTextOverlayWidget:
Collaboration diagram for QmitkSimpleTextOverlayWidget:

Public Member Functions

 QmitkSimpleTextOverlayWidget (QWidget *parent=nullptr)
 
 ~QmitkSimpleTextOverlayWidget () override
 
QString GetOverlayText () const
 
void SetOverlayText (const QString &text)
 
- Public Member Functions inherited from QmitkOverlayWidget
 QmitkOverlayWidget (QWidget *parent=nullptr)
 
 ~QmitkOverlayWidget () override
 
bool isTransparentForMouseEvents () const
 
void setTransparentForMouseEvents (bool transparent=true)
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 
- Protected Member Functions inherited from QmitkOverlayWidget
bool event (QEvent *e) override
 
bool eventFilter (QObject *watched, QEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Properties

QString overlayText
 
- Properties inherited from QmitkOverlayWidget
bool transparentForMouseEvents
 

Detailed Description

Simple overlay that renders a passed string. You may pass an html string that will be rendered accordingly respecting the current application style sheet.

Definition at line 22 of file QmitkSimpleTextOverlayWidget.h.

Constructor & Destructor Documentation

◆ QmitkSimpleTextOverlayWidget()

QmitkSimpleTextOverlayWidget::QmitkSimpleTextOverlayWidget ( QWidget *  parent = nullptr)
explicit

◆ ~QmitkSimpleTextOverlayWidget()

QmitkSimpleTextOverlayWidget::~QmitkSimpleTextOverlayWidget ( )
override

Member Function Documentation

◆ GetOverlayText()

QString QmitkSimpleTextOverlayWidget::GetOverlayText ( ) const

◆ paintEvent()

void QmitkSimpleTextOverlayWidget::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ SetOverlayText()

void QmitkSimpleTextOverlayWidget::SetOverlayText ( const QString &  text)

Property Documentation

◆ overlayText

QString QmitkSimpleTextOverlayWidget::overlayText
readwrite

Definition at line 25 of file QmitkSimpleTextOverlayWidget.h.


The documentation for this class was generated from the following file: