Medical Imaging Interaction Toolkit  2022.04.99-3f7a773b
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


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)

◆ ~QmitkSimpleTextOverlayWidget()

QmitkSimpleTextOverlayWidget::~QmitkSimpleTextOverlayWidget ( )

Member Function Documentation

◆ GetOverlayText()

QString QmitkSimpleTextOverlayWidget::GetOverlayText ( ) const

◆ paintEvent()

void QmitkSimpleTextOverlayWidget::paintEvent ( QPaintEvent *  event)

◆ SetOverlayText()

void QmitkSimpleTextOverlayWidget::SetOverlayText ( const QString &  text)

Property Documentation

◆ overlayText

QString QmitkSimpleTextOverlayWidget::overlayText

Definition at line 25 of file QmitkSimpleTextOverlayWidget.h.

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