Qt Buttons: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Developing_with_Qt::General]] | [[Category:Developing_with_Qt::General]] | ||
[toc align_right= | [toc align_right="yes" depth="3"] | ||
'''English''' [[Qt_Buttons_Bulgarian|Български]] [[Qt_Buttons_Spanish|Spanish]] [[Qt_Buttons_SimplifiedChinese|简体中文]] | '''English''' [[Qt_Buttons_Bulgarian|Български]] [[Qt_Buttons_Spanish|Spanish]] [[Qt_Buttons_SimplifiedChinese|简体中文]] | ||
Line 9: | Line 9: | ||
== 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 | 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":http://doc.qt.nokia.com/4.7/qabstractbutton.html. QAbstractButton inherits "QWidget":http://doc.qt.nokia.com/4.7/qwidget.html and it is the abstract base class of button widgets. | ||
== Signals == | == Signals == | ||
Line 24: | Line 24: | ||
=== QPushButton === | === QPushButton === | ||
"QPushButton":http://doc.qt.nokia.com/4.7/qpushbutton.html is a customizable widget for a command button. For "more information and example how to use QPushButton please read the following article":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton | |||
[[Image:http://doc.qt.nokia.com/4.7/images/windowsxp-pushbutton.png|push button]] | [[Image:http://doc.qt.nokia.com/4.7/images/windowsxp-pushbutton.png|push button]] | ||
Line 30: | Line 30: | ||
=== QCheckBox === | === QCheckBox === | ||
"QCheckBox":http://doc.qt.nokia.com/4.7/qcheckbox.html is a button that look like a checkbox with a text label next to it. | |||
[[Image:http://doc.qt.nokia.com/4.7/images/windows-checkbox.png|checkbox]] | [[Image:http://doc.qt.nokia.com/4.7/images/windows-checkbox.png|checkbox]] | ||
Line 36: | Line 36: | ||
=== QRadioButton === | === QRadioButton === | ||
"QRadioButton":http://doc.qt.nokia.com/4.7/qradiobutton.html is a radio button with a text label. | |||
[[Image:http://doc.qt.nokia.com/4.7/images/windows-radiobutton.png|radio button]] | [[Image:http://doc.qt.nokia.com/4.7/images/windows-radiobutton.png|radio button]] | ||
Line 42: | Line 42: | ||
=== QToolButton === | === QToolButton === | ||
"QToolButton":http://doc.qt.nokia.com/4.7/qtoolbutton.html provides a quick-access button to options which are usually used inside a "QToolBar":http://doc.qt.nokia.com/4.7/qtoolbar.html | |||
[[Image:http://doc.qt.nokia.com/4.7/images/assistant-toolbar.png|button inside toolbar]] | [[Image:http://doc.qt.nokia.com/4.7/images/assistant-toolbar.png|button inside toolbar]] | ||
Line 48: | Line 48: | ||
== See also == | == See also == | ||
"Basic Qt Programming Tutorial":http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial | |||
"How to Use QPushButton":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton |
Revision as of 08:50, 25 February 2015
[toc align_right="yes" depth="3"]
English Български Spanish 简体中文
Qt Buttons
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":http://doc.qt.nokia.com/4.7/qabstractbutton.html. QAbstractButton inherits "QWidget":http://doc.qt.nokia.com/4.7/qwidget.html 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":http://doc.qt.nokia.com/4.7/qpushbutton.html is a customizable widget for a command button. For "more information and example how to use QPushButton please read the following article":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton
QCheckBox
"QCheckBox":http://doc.qt.nokia.com/4.7/qcheckbox.html is a button that look like a checkbox with a text label next to it.
QRadioButton
"QRadioButton":http://doc.qt.nokia.com/4.7/qradiobutton.html is a radio button with a text label.
QToolButton
"QToolButton":http://doc.qt.nokia.com/4.7/qtoolbutton.html provides a quick-access button to options which are usually used inside a "QToolBar":http://doc.qt.nokia.com/4.7/qtoolbar.html
See also
"Basic Qt Programming Tutorial":http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial "How to Use QPushButton":http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton