Qudi
|
Extend the PlotWidget Class with more adjustment possibilities. More...
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) | |
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.
def qtwidgets.plotwidget_modified.PlotWidgetModified.mousePressEvent | ( | self, | |
ev | |||
) |
Override the Qt method, which handels mouse press events.
QEvent | ev: 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.
def qtwidgets.plotwidget_modified.PlotWidgetModified.mouseReleaseEvent | ( | self, | |
ev | |||
) |
Override the Qt method, which handels mouse release events.
QEvent | ev: 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.