Qt Buttons: Difference between revisions
Jump to navigation
Jump to search
AutoSpider (talk | contribs) (Convert ExpressionEngine links) |
Henri Vikki (talk | contribs) (Links & images fix) |
||
Line 1: | Line 1: | ||
[[Category:Developing_with_Qt::General]] | [[Category:Developing_with_Qt::General]] | ||
'''English''' [[Qt_Buttons_Bulgarian|Български]] [[Qt_Buttons_Spanish|Spanish]] [[Qt_Buttons_SimplifiedChinese|简体中文]] | '''English''' [[Qt_Buttons_Bulgarian|Български]] [[Qt_Buttons_Spanish|Spanish]] [[Qt_Buttons_SimplifiedChinese|简体中文]] | ||
== Overview == | == 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 [http://doc.qt. | 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 [http://doc.qt.io/qt-5/qabstractbutton.html QAbstractButton]. QAbstractButton inherits [http://doc.qt.io/qt-5/qwidget.html QWidget] and it is the abstract base class of button widgets. | ||
== Signals == | == Signals == | ||
Line 26: | Line 25: | ||
=== QPushButton === | === QPushButton === | ||
[http://doc.qt. | [http://doc.qt.io/qt-5/qpushbutton.html QPushButton] is a customizable widget for a command button. For [https://wiki.qt.io/How_to_Use_QPushButton more information and example how to use QPushButton please read the following article] | ||
http://doc.qt.nokia.com/4.7/images/windowsxp-pushbutton.png | |||
=== QCheckBox === | === QCheckBox === | ||
[http://doc.qt. | [http://doc.qt.io/qt-5/qcheckbox.html QCheckBox] is a button that look like a checkbox with a text label next to it. | ||
http://doc.qt.nokia.com/4.7/images/windows-checkbox.png | |||
=== QRadioButton === | === QRadioButton === | ||
[http://doc.qt. | [http://doc.qt.io/qt-5/QRadioButton.html QRadioButton] is a radio button with a text label. | ||
http://doc.qt.nokia.com/4.7/images/windows-radiobutton.png | |||
=== QToolButton === | === QToolButton === | ||
[http://doc.qt. | [http://doc.qt.io/qt-5/qtoolbutton.html QToolButton] provides a quick-access button to options which are usually used inside a [http://doc.qt.io/qt-5/qtoolbar.html QToolBar] | ||
http://doc.qt.nokia.com/4.7/images/assistant-toolbar.png | |||
== See also == | == See also == | ||
[ | [https://wiki.qt.io/Basic_Qt_Programming_Tutorial Basic Qt Programming Tutorial] | ||
[ | [https://wiki.qt.io/How_to_Use_QPushButton How to Use QPushButton] |
Revision as of 07:29, 7 April 2015
English Български Spanish 简体中文
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 example how to use QPushButton please read the following article
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