RadioButton Class Reference
A QRadioButton with focus widget and read-only options. More...
#include <radiobutton.h>
Inherits QRadioButton.
Public Member Functions
- RadioButton (QWidget *parent, const char *name=0)
- RadioButton (const QString &text, QWidget *parent, const char *name=0)
- bool isReadOnly () const
- void setReadOnly (bool readOnly)
- QWidget * focusWidget () const
- void setFocusWidget (QWidget *widget, bool enable=true)
Protected Slots
Protected Member Functions
- virtual void mousePressEvent (QMouseEvent *)
- virtual void mouseReleaseEvent (QMouseEvent *)
- virtual void mouseMoveEvent (QMouseEvent *)
- virtual void keyPressEvent (QKeyEvent *)
- virtual void keyReleaseEvent (QKeyEvent *)
Detailed Description
A QRadioButton with focus widget and read-only options.The RadioButton class is a QRadioButton with the ability to transfer focus to another widget when checked, and with a read-only option.
Another widget may be specified as the focus widget for the radio button. Whenever the user clicks on the radio button so as to set its state to checked, focus is automatically transferred to the focus widget.
The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.
- Author:
- David Jarvie <software@astrojar.org.uk>
Constructor & Destructor Documentation
|
Constructor.
|
|
Constructor.
|
Member Function Documentation
|
Returns true if the widget is read only.
|
|
Sets whether the radio button is read-only for the user. If read-only, its state cannot be changed by the user.
|
|
Returns the widget which receives focus when the button is clicked.
|
|
Specifies a widget to receive focus when the button is clicked.
|
The documentation for this class was generated from the following files:
- radiobutton.h
- radiobutton.cpp