Definition at line 58 of file qabstractbutton.h.
#include <qabstractbutton.h>

Public Slots |
|
| void | setIconSize (const QSize &size) |
| void | animateClick (int msec=100) |
| void | click () |
| void | toggle () |
| void | setChecked (bool) |
Signals |
|
| void | pressed () |
| void | released () |
| void | clicked (bool checked=false) |
| void | toggled (bool checked) |
Public Member Functions |
|
| QAbstractButton (QWidget *parent=0) | |
| ~QAbstractButton () | |
| void | setText (const QString &text) |
| QString | text () const |
| void | setIcon (const QIcon &icon) |
| QIcon | icon () const |
| QSize | iconSize () const |
| void | setShortcut (const QKeySequence &key) |
| QKeySequence | shortcut () const |
| void | setCheckable (bool) |
| bool | isCheckable () const |
| bool | isChecked () const |
| void | setDown (bool) |
| bool | isDown () const |
| void | setAutoRepeat (bool) |
| bool | autoRepeat () const |
| void | setAutoRepeatDelay (int) |
| int | autoRepeatDelay () const |
| void | setAutoRepeatInterval (int) |
| int | autoRepeatInterval () const |
| void | setAutoExclusive (bool) |
| bool | autoExclusive () const |
| QButtonGroup * | group () const |
Protected Member Functions |
|
| virtual void | paintEvent (QPaintEvent *e)=0 |
| virtual bool | hitButton (const QPoint &pos) const |
| virtual void | checkStateSet () |
| virtual void | nextCheckState () |
| bool | event (QEvent *e) |
| void | keyPressEvent (QKeyEvent *e) |
| void | keyReleaseEvent (QKeyEvent *e) |
| void | mousePressEvent (QMouseEvent *e) |
| void | mouseReleaseEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *e) |
| void | focusInEvent (QFocusEvent *e) |
| void | focusOutEvent (QFocusEvent *e) |
| void | changeEvent (QEvent *e) |
| void | timerEvent (QTimerEvent *e) |
| QAbstractButton (QAbstractButtonPrivate &dd, QWidget *parent=0) | |
Properties |
|
| QString | text |
| QIcon | icon |
| QSize | iconSize |
| QKeySequence | shortcut |
| bool | checkable |
| bool | checked |
| bool | autoRepeat |
| bool | autoExclusive |
| int | autoRepeatDelay |
| int | autoRepeatInterval |
| bool | down |
Friends |
|
| class | QButtonGroup |
| QAbstractButton | ( | QWidget * | parent = 0 |
) | [explicit] |
| ~QAbstractButton | ( | ) |
| QAbstractButton | ( | QAbstractButtonPrivate & | dd, |
| QWidget * | parent = 0 |
||
| ) | [protected] |
| void setText | ( | const QString & | text | ) |
| QString text | ( | ) | const |
| void setIcon | ( | const QIcon & | icon | ) |
| QIcon icon | ( | ) | const |
| QSize iconSize | ( | ) | const |
| void setShortcut | ( | const QKeySequence & | key | ) |
| QKeySequence shortcut | ( | ) | const |
| void setCheckable | ( | bool | ) |
| bool isCheckable | ( | ) | const |
| bool isChecked | ( | ) | const |
| void setDown | ( | bool | ) |
| bool isDown | ( | ) | const |
| void setAutoRepeat | ( | bool | ) |
| bool autoRepeat | ( | ) | const |
| void setAutoRepeatDelay | ( | int | ) |
| int autoRepeatDelay | ( | ) | const |
| void setAutoRepeatInterval | ( | int | ) |
| int autoRepeatInterval | ( | ) | const |
| void setAutoExclusive | ( | bool | ) |
| bool autoExclusive | ( | ) | const |
| QButtonGroup* group | ( | ) | const |
| void setIconSize | ( | const QSize & | size | ) | [slot] |
| void animateClick | ( | int | msec = 100 |
) | [slot] |
| void click | ( | ) | [slot] |
| void toggle | ( | ) | [slot] |
| void setChecked | ( | bool | ) | [slot] |
| void pressed | ( | ) | [signal] |
| void released | ( | ) | [signal] |
| void clicked | ( | bool | checked = false |
) | [signal] |
| void toggled | ( | bool | checked | ) | [signal] |
| virtual void paintEvent | ( | QPaintEvent * | e | ) | [protected, pure virtual] |
Reimplemented from QWidget.
Implemented in QCheckBox, QCommandLinkButton, QPushButton, QRadioButton, and QToolButton.
| virtual bool hitButton | ( | const QPoint & | pos | ) | const [protected, virtual] |
Reimplemented in QCheckBox, QRadioButton, and QToolButton.
| virtual void checkStateSet | ( | ) | [protected, virtual] |
Reimplemented in QCheckBox.
| virtual void nextCheckState | ( | ) | [protected, virtual] |
Reimplemented in QCheckBox, and QToolButton.
| bool event | ( | QEvent * | e | ) | [protected, virtual] |
Reimplemented from QWidget.
Reimplemented in QCheckBox, QCommandLinkButton, QPushButton, QRadioButton, and QToolButton.
| void keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
| void mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| void mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Reimplemented from QWidget.
Reimplemented in QCheckBox, and QRadioButton.
| void focusInEvent | ( | QFocusEvent * | e | ) | [protected, virtual] |
| void focusOutEvent | ( | QFocusEvent * | e | ) | [protected, virtual] |
| void changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
| void timerEvent | ( | QTimerEvent * | e | ) | [protected, virtual] |
friend class QButtonGroup
[friend] |
Definition at line 173 of file qabstractbutton.h.
QString text [read,
write] |
Definition at line 62 of file qabstractbutton.h.
QIcon icon [read, write] |
Definition at line 63 of file qabstractbutton.h.
QSize iconSize [read,
write] |
Definition at line 64 of file qabstractbutton.h.
QKeySequence shortcut [read,
write] |
Definition at line 66 of file qabstractbutton.h.
bool checkable [read, write] |
Definition at line 68 of file qabstractbutton.h.
bool checked [read, write] |
Definition at line 69 of file qabstractbutton.h.
bool autoRepeat [read, write] |
Definition at line 70 of file qabstractbutton.h.
bool autoExclusive [read,
write] |
Definition at line 71 of file qabstractbutton.h.
int autoRepeatDelay [read,
write] |
Definition at line 72 of file qabstractbutton.h.
int autoRepeatInterval [read,
write] |
Definition at line 73 of file qabstractbutton.h.
bool down [read, write] |
Definition at line 74 of file qabstractbutton.h.