Qt Buttons: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Cleanup)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''English''' [[Qt Buttons Bulgarian|Български]] [[Qt Buttons Spanish|Spanish]] [[Qt Buttons SimplifiedChinese|简体中文]]
{{LangSwitch}}
[[Category:Developing_with_Qt::General]]
== Overview ==


=Qt Buttons=
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.


==Overview==
== Signals ==
 
As an advanced framework for creation of <span class="caps">GUI</span> Qt offers variety of buttons to satisfy different fancies. The classes that implement different types of buttons inherit [http://doc.qt.nokia.com/4.7/qabstractbutton.html QAbstractButton] ''[doc.qt.nokia.com]''. QAbstractButton inherits [http://doc.qt.nokia.com/4.7/qwidget.html QWidget] ''[doc.qt.nokia.com]'' and it is the abstract base class of button widgets.
 
==Signals==


QAbstractButton offers the following signals:
QAbstractButton offers the following signals:


* void clicked ( bool checked = false )
void clicked(bool checked=false)
* void pressed ()
void pressed()
* void released ()
void released()
* void toggled ( bool checked )
void toggled(bool checked)
 
==Button Types==
 
===QPushButton===
 
[http://doc.qt.nokia.com/4.7/qpushbutton.html QPushButton] ''[doc.qt.nokia.com]'' is a customizable widget for a command button. For [http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton more information and example how to use QPushButton please read the following article] ''[developer.qt.nokia.com]''
 
[[Image:windowsxp-pushbutton.png|push button]]
 
===QCheckBox===
 
[http://doc.qt.nokia.com/4.7/qcheckbox.html QCheckBox] ''[doc.qt.nokia.com]'' is a button that look like a checkbox with a text label next to it.


[[Image:windows-checkbox.png|checkbox]]
== Button Types ==


===QRadioButton===
=== QPushButton ===


[http://doc.qt.nokia.com/4.7/qradiobutton.html QRadioButton] ''[doc.qt.nokia.com]'' is a radio button with a text label.
{{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]].  


[[Image:windows-radiobutton.png|radio button]]
=== QCheckBox ===


===QToolButton===
{{DocLink|QCheckBox}} is a button that look like a checkbox with a text label next to it.


[http://doc.qt.nokia.com/4.7/qtoolbutton.html QToolButton] ''[doc.qt.nokia.com]'' provides a quick-access button to options which are usually used inside a [http://doc.qt.nokia.com/4.7/qtoolbar.html QToolBar] ''[doc.qt.nokia.com]''
=== QRadioButton ===


[[Image:assistant-toolbar.png|button inside toolbar]]
{{DocLink|QRadioButton}} is a radio button with a text label.


==See also==
=== QToolButton ===


[http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial Basic Qt Programming Tutorial] ''[developer.qt.nokia.com]''<br />[http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton How to Use QPushButton] ''[developer.qt.nokia.com]''
{{DocLink|QToolButton}} provides a quick-access button to options which are usually used inside a {{DocLink|QToolBar}}.


===Categories:===
== See also ==


* [[:Category:Developing with Qt|Developing_with_Qt]]
* [[Basic Qt Programming Tutorial]]
** [[:Category:Developing with Qt::General|General]]
* [[How to Use QPushButton]]

Latest revision as of 22:36, 27 June 2015

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

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.

See also