Medical Imaging Interaction Toolkit  2024.06.99-5f7b36e7
Medical Imaging Interaction Toolkit
QmitkButtonOverlayWidget Class Reference

#include <QmitkButtonOverlayWidget.h>

Inheritance diagram for QmitkButtonOverlayWidget:
Collaboration diagram for QmitkButtonOverlayWidget:


void Clicked ()

Public Member Functions

 QmitkButtonOverlayWidget (QWidget *parent=nullptr)
 ~QmitkButtonOverlayWidget () override
QString GetOverlayText () const
void SetOverlayText (const QString &text)
QString GetButtonText () const
void SetButtonText (const QString &text)
QIcon GetButtonIcon () const
void SetButtonIcon (const QIcon &icon)
- Public Member Functions inherited from QmitkOverlayWidget
 QmitkOverlayWidget (QWidget *parent=nullptr)
 ~QmitkOverlayWidget () override
bool isTransparentForMouseEvents () const
void setTransparentForMouseEvents (bool transparent=true)

Additional Inherited Members

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

Detailed Description

Overlay that renders a passed string and draws an icon as a push button. You may pass an html string that will be rendered accordingly respecting the current application style sheet. The button will return the 'Clicked' signal which can be connected to a slot in the calling class.

Definition at line 27 of file QmitkButtonOverlayWidget.h.

Constructor & Destructor Documentation

◆ QmitkButtonOverlayWidget()

QmitkButtonOverlayWidget::QmitkButtonOverlayWidget ( QWidget *  parent = nullptr)

◆ ~QmitkButtonOverlayWidget()

QmitkButtonOverlayWidget::~QmitkButtonOverlayWidget ( )

Member Function Documentation

◆ Clicked

void QmitkButtonOverlayWidget::Clicked ( )

◆ GetButtonIcon()

QIcon QmitkButtonOverlayWidget::GetButtonIcon ( ) const

◆ GetButtonText()

QString QmitkButtonOverlayWidget::GetButtonText ( ) const

◆ GetOverlayText()

QString QmitkButtonOverlayWidget::GetOverlayText ( ) const

◆ SetButtonIcon()

void QmitkButtonOverlayWidget::SetButtonIcon ( const QIcon &  icon)

◆ SetButtonText()

void QmitkButtonOverlayWidget::SetButtonText ( const QString &  text)

◆ SetOverlayText()

void QmitkButtonOverlayWidget::SetOverlayText ( const QString &  text)

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