Qudi
Public Member Functions | Static Public Attributes | List of all members
qtwidgets.qradiobutton_custom.CustomQRadioButton Class Reference

Class which customize QRadioButton behaviour. More...

Inheritance diagram for qtwidgets.qradiobutton_custom.CustomQRadioButton:
Inheritance graph
[legend]
Collaboration diagram for qtwidgets.qradiobutton_custom.CustomQRadioButton:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, args)
 
def isReadOnly (self)
 Check the current state of the Radiobox. More...
 
def mousePressEvent (self, event)
 Handle what happens on press event of the mouse. More...
 
def mouseReleaseEvent (self, event)
 Handle what happens on release of the mouse. More...
 
def keyPressEvent (self, event)
 
def setReadOnly (self, state)
 Set the Readonly state. More...
 

Static Public Attributes

 readOnly = QtCore.pyqtProperty(bool, isReadOnly, setReadOnly)
 

Detailed Description

Class which customize QRadioButton behaviour.

The following customization have been applied:

Member Function Documentation

◆ isReadOnly()

def qtwidgets.qradiobutton_custom.CustomQRadioButton.isReadOnly (   self)

Check the current state of the Radiobox.

◆ mousePressEvent()

def qtwidgets.qradiobutton_custom.CustomQRadioButton.mousePressEvent (   self,
  event 
)

Handle what happens on press event of the mouse.

Parameters
eventQEvent of a Mouse Release action

◆ mouseReleaseEvent()

def qtwidgets.qradiobutton_custom.CustomQRadioButton.mouseReleaseEvent (   self,
  event 
)

Handle what happens on release of the mouse.

Parameters
eventQEvent of a Mouse Release action

◆ setReadOnly()

def qtwidgets.qradiobutton_custom.CustomQRadioButton.setReadOnly (   self,
  state 
)

Set the Readonly state.

Parameters
boolstate: True or False, for having a readonly QRadioButton.

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