|
Medical Imaging Interaction Toolkit
2025.12.02
Medical Imaging Interaction Toolkit
|
#include <QmitkFloatingTextPopup.h>


Public Member Functions | |
| QmitkFloatingTextPopup (QWidget *parent=nullptr) | |
| ~QmitkFloatingTextPopup () override | |
| QString | GetHtmlContent () const |
| void | SetHtmlContent (const QString &html) |
| int | GetOpacity () const |
| void | SetOpacity (int opacity) |
| bool | IsEnabled () const |
| void | SetEnabled (bool enabled) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| QSize | sizeHint () const override |
| bool | eventFilter (QObject *watched, QEvent *event) override |
Properties | |
| QString | htmlContent |
| int | opacity |
| bool | popupEnabled |
Self-contained floating semi-translucent popup widget that displays HTML content and automatically follows the mouse cursor across the entire screen.
The popup manages its own mouse tracking and visibility. Simply set the HTML content and call SetEnabled(true) to activate it.
Definition at line 26 of file QmitkFloatingTextPopup.h.
|
explicit |
|
override |
|
overrideprotected |
| QString QmitkFloatingTextPopup::GetHtmlContent | ( | ) | const |
| int QmitkFloatingTextPopup::GetOpacity | ( | ) | const |
| bool QmitkFloatingTextPopup::IsEnabled | ( | ) | const |
Enable or disable the popup. When enabled and content is set, the popup will follow the mouse cursor.
|
overrideprotected |
| void QmitkFloatingTextPopup::SetEnabled | ( | bool | enabled | ) |
| void QmitkFloatingTextPopup::SetHtmlContent | ( | const QString & | html | ) |
| void QmitkFloatingTextPopup::SetOpacity | ( | int | opacity | ) |
|
overrideprotected |
|
readwrite |
Definition at line 1 of file QmitkFloatingTextPopup.h.
|
readwrite |
Definition at line 1 of file QmitkFloatingTextPopup.h.
|
readwrite |
Definition at line 1 of file QmitkFloatingTextPopup.h.