Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
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


bool transparentForMouseEvents

Detailed Description

Simple widget that can be used to achive 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)

◆ ~QmitkOverlayWidget()

QmitkOverlayWidget::~QmitkOverlayWidget ( )

Member Function Documentation

◆ event()

bool QmitkOverlayWidget::event ( QEvent *  e)

◆ eventFilter()

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

◆ isTransparentForMouseEvents()

bool QmitkOverlayWidget::isTransparentForMouseEvents ( ) const

◆ paintEvent()

void QmitkOverlayWidget::paintEvent ( QPaintEvent *  event)

◆ setTransparentForMouseEvents()

void QmitkOverlayWidget::setTransparentForMouseEvents ( bool  transparent = true)

Property Documentation

◆ transparentForMouseEvents

bool QmitkOverlayWidget::transparentForMouseEvents

Definition at line 26 of file QmitkOverlayWidget.h.

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