Qt Buttons: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Cleanup) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{LangSwitch}} | |||
[[Category:Developing_with_Qt::General]] | |||
== Overview == | |||
As an advanced framework for creation of GUI Qt offers variety of buttons to satisfy different fancies. The classes that implement different types of buttons inherit {{DocLink|QAbstractButton}}. QAbstractButton inherits {{DocLink|QWidget}} and it is the abstract base class of button widgets. | |||
== Signals == | |||
==Signals== | |||
QAbstractButton offers the following signals: | QAbstractButton offers the following signals: | ||
void clicked(bool checked=false) | |||
void pressed() | |||
void released() | |||
void toggled(bool checked) | |||
== Button Types == | |||
=== | === QPushButton === | ||
[ | {{DocLink|QPushButton}} is a customizable widget for a command button. For more information and examples on how to use QPushButton please see the following article: [[How to Use QPushButton]]. | ||
=== QCheckBox === | |||
{{DocLink|QCheckBox}} is a button that look like a checkbox with a text label next to it. | |||
=== QRadioButton === | |||
{{DocLink|QRadioButton}} is a radio button with a text label. | |||
== | === QToolButton === | ||
{{DocLink|QToolButton}} provides a quick-access button to options which are usually used inside a {{DocLink|QToolBar}}. | |||
== | == See also == | ||
* [[ | * [[Basic Qt Programming Tutorial]] | ||
* [[How to Use QPushButton]] |
Latest revision as of 22:36, 27 June 2015
Overview
As an advanced framework for creation of GUI Qt offers variety of buttons to satisfy different fancies. The classes that implement different types of buttons inherit QAbstractButton. QAbstractButton inherits QWidget and it is the abstract base class of button widgets.
Signals
QAbstractButton offers the following signals:
void clicked(bool checked=false) void pressed() void released() void toggled(bool checked)
Button Types
QPushButton
QPushButton is a customizable widget for a command button. For more information and examples on how to use QPushButton please see the following article: How to Use QPushButton.
QCheckBox
QCheckBox is a button that look like a checkbox with a text label next to it.
QRadioButton
QRadioButton is a radio button with a text label.
QToolButton
QToolButton provides a quick-access button to options which are usually used inside a QToolBar.