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

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

◆ attachToWidget

void MLABGraphicsMouseArea::attachToWidget ( QGraphicsWidget * widget)
slot

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

◆ detachEventFilter

void MLABGraphicsMouseArea::detachEventFilter ( )
slot

detach event filter

◆ setEnabled

void MLABGraphicsMouseArea::setEnabled ( bool flag)
slot

enable/disable event handling

◆ setHoverEnabled

void MLABGraphicsMouseArea::setHoverEnabled ( bool flag)
slot

enable/disable hover support (enter/leave and mouse move without mouse press)