Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkOverlayWidget Class Reference

#include <QmitkOverlayWidget.h>

Inheritance diagram for QmitkOverlayWidget:
Collaboration diagram for QmitkOverlayWidget:

Public Member Functions

 QmitkOverlayWidget (QWidget *parent=nullptr)
 
 ~QmitkOverlayWidget () override
 
bool isTransparentForMouseEvents () const
 
void setTransparentForMouseEvents (bool transparent=true)
 

Protected Member Functions

bool event (QEvent *e) override
 
bool eventFilter (QObject *watched, QEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 

Properties

bool transparentForMouseEvents
 

Detailed Description

Simple widget that can be used to achieve overlays. The overlay will lie above its parent. This implementation just renders a semi transparent black background. To add content to the overlay derive from this class.

Definition at line 23 of file QmitkOverlayWidget.h.

Constructor & Destructor Documentation

◆ QmitkOverlayWidget()

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

◆ ~QmitkOverlayWidget()

QmitkOverlayWidget::~QmitkOverlayWidget ( )
override

Member Function Documentation

◆ event()

bool QmitkOverlayWidget::event ( QEvent *  e)
overrideprotected

◆ eventFilter()

bool QmitkOverlayWidget::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotected

◆ isTransparentForMouseEvents()

bool QmitkOverlayWidget::isTransparentForMouseEvents ( ) const

◆ paintEvent()

void QmitkOverlayWidget::paintEvent ( QPaintEvent *  event)
overrideprotected

◆ setTransparentForMouseEvents()

void QmitkOverlayWidget::setTransparentForMouseEvents ( bool  transparent = true)

Property Documentation

◆ transparentForMouseEvents

bool QmitkOverlayWidget::transparentForMouseEvents
readwrite

Definition at line 26 of file QmitkOverlayWidget.h.


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