Obsolete Members for QButtonGroup
The following members of class QButtonGroup are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Signals
(obsolete) void | buttonClicked(int id) |
(obsolete) void | buttonPressed(int id) |
(obsolete) void | buttonReleased(int id) |
(obsolete) void | buttonToggled(int id, bool checked) |
Member Function Documentation
[signal]
void QButtonGroup::buttonClicked(int id)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This signal is emitted when a button with the given id is clicked.
Note: Signal buttonClicked is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(buttonGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), [=](int id){ /* ... */ });
See also checkedButton() and QAbstractButton::clicked().
[signal]
void QButtonGroup::buttonPressed(int id)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This signal is emitted when a button with the given id is pressed down.
Note: Signal buttonPressed is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(buttonGroup, QOverload<int>::of(&QButtonGroup::buttonPressed), [=](int id){ /* ... */ });
This function was introduced in Qt 4.2.
See also QAbstractButton::pressed().
[signal]
void QButtonGroup::buttonReleased(int id)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This signal is emitted when a button with the given id is released.
Note: Signal buttonReleased is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(buttonGroup, QOverload<int>::of(&QButtonGroup::buttonReleased), [=](int id){ /* ... */ });
This function was introduced in Qt 4.2.
See also QAbstractButton::released().
[signal]
void QButtonGroup::buttonToggled(int id, bool checked)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This signal is emitted when a button with the given id is toggled. checked is true if the button is checked, or false if the button is unchecked.
Note: Signal buttonToggled is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(buttonGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled), [=](int id, bool checked){ /* ... */ });
This function was introduced in Qt 5.2.
See also QAbstractButton::toggled().