Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
qtwidgets.plotwidget_modified.PlotWidgetModified Class Reference

Extend the PlotWidget Class with more adjustment possibilities. More...

Inheritance diagram for qtwidgets.plotwidget_modified.PlotWidgetModified:
Inheritance graph
[legend]
Collaboration diagram for qtwidgets.plotwidget_modified.PlotWidgetModified:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, args, kargs)
 
def mousePressEvent (self, ev)
 Override the Qt method, which handels mouse press events. More...
 
def mouseReleaseEvent (self, ev)
 Override the Qt method, which handels mouse release events. More...
 

Public Attributes

 mousePressPos
 
 clickAccepted
 
 lastButtonReleased
 

Static Public Attributes

 sigMouseClick = QtCore.Signal(object)
 
 sigMouseReleased = QtCore.Signal(object)
 

Detailed Description

Extend the PlotWidget Class with more adjustment possibilities.

This class can be promoted in the Qt designer. Here you can predefine or redefined all methods and class variables, which should be used in the Qt Designer before it will be loaded into the created ui file.

This class behaves like the normal PlotWidget class but extends its functionality with modified mouse events.

Member Function Documentation

◆ mousePressEvent()

def qtwidgets.plotwidget_modified.PlotWidgetModified.mousePressEvent (   self,
  ev 
)

Override the Qt method, which handels mouse press events.

Parameters
QEventev: Event object which contains all the information at the time the event was emitted.

That is basically a reimplementation of the mouseReleaseEvent function of the PlotWidget.

◆ mouseReleaseEvent()

def qtwidgets.plotwidget_modified.PlotWidgetModified.mouseReleaseEvent (   self,
  ev 
)

Override the Qt method, which handels mouse release events.

Parameters
QEventev: Event object which contains all the information at the time the event was emitted.

That is basically a reimplementation of the mouseReleaseEvent function of the PlotWidget.


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