CheckBox Class Reference
The CheckBox class is a QCheckBox with the ability to transfer focus to another widget when checked, and with a read-only option. QCheckBox with focus widget and read-only options. More...
#include <checkbox.h>
Inherits QCheckBox.
Public Member Functions
- CheckBox (QWidget *parent, const char *name=0)
- CheckBox (const QString &text, QWidget *parent, const char *name=0)
- bool isReadOnly () const
- void setReadOnly (bool readOnly)
- QWidget * focusWidget () const
- void setFocusWidget (QWidget *, 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
The CheckBox class is a QCheckBox with the ability to transfer focus to another widget when checked, and with a read-only option. QCheckBox with focus widget and read-only options.Another widget may be specified as the focus widget for the check box. Whenever the user clicks on the check box 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 check box 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 user selects the check box by clicking on it.
|
|
Specifies a widget to receive focus when the user selects the check box by clicking on it.
|
The documentation for this class was generated from the following files:
- checkbox.h
- checkbox.cpp