MeVisLab Scripting Reference
MLABGraphicsMouseArea Class Reference

#include <mlabGraphicsMouseArea.h>

Inherits QGraphicsWidget.

Public Slots

Scripting


void setEnabled (bool flag)
 
void setHoverEnabled (bool flag)
 
void attachToWidget (QGraphicsWidget *widget)
 
void attachEventFilter (QGraphicsItem *item)
 
void detachEventFilter ()
 

Detailed Description

MouseArea graphics view item allows to handle mouse events via emitted signals.

Member Function Documentation

◆ attachEventFilter

void MLABGraphicsMouseArea::attachEventFilter ( QGraphicsItem *  item)
slot

Attaches this item as the event filter of the given item (sets this item as "invisible").

◆ attachToWidget

void MLABGraphicsMouseArea::attachToWidget ( QGraphicsWidget *  widget)
slot

Attaches the item to the widget (so that the mouse area's geometry is resized to that of the widget).

◆ detachEventFilter

void MLABGraphicsMouseArea::detachEventFilter ( )
slot

Detaches event filter.

◆ setEnabled

void MLABGraphicsMouseArea::setEnabled ( bool  flag)
slot

Enables/disables event handling.

◆ setHoverEnabled

void MLABGraphicsMouseArea::setHoverEnabled ( bool  flag)
slot

Enables/disables hover support (enter/leave and mouse move without mouse press).