Qt Buttons: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [[Qt Buttons Bulgarian|Български]] [[Qt Buttons Spanish|Spanish]] [[Qt Buttons SimplifiedChinese|简体中文]]
[[Category:Developing_with_Qt::General]]


=Qt Buttons=
[toc align_right="yes" depth="3"]


==Overview==
'''English''' [[Qt_Buttons_Bulgarian|Български]] [[Qt_Buttons_Spanish|Spanish]] [[Qt_Buttons_SimplifiedChinese|简体中文]]


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


==Signals==
== 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 &quot;QAbstractButton&amp;quot;:http://doc.qt.nokia.com/4.7/qabstractbutton.html. QAbstractButton inherits &quot;QWidget&amp;quot;: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:
QAbstractButton offers the following signals:
Line 16: Line 20:
* void toggled ( bool checked )
* void toggled ( bool checked )


==Button Types==
== 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]]
=== QPushButton ===


===QCheckBox===
&quot;QPushButton&amp;quot;:http://doc.qt.nokia.com/4.7/qpushbutton.html is a customizable widget for a command button. For &quot;more information and example how to use QPushButton please read the following article&amp;quot;:http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton


[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:http://doc.qt.nokia.com/4.7/images/windowsxp-pushbutton.png|push button]]


[[Image:windows-checkbox.png|checkbox]]
=== QCheckBox ===


===QRadioButton===
&quot;QCheckBox&amp;quot;:http://doc.qt.nokia.com/4.7/qcheckbox.html is a button that look like a checkbox with a text label next to it.


[http://doc.qt.nokia.com/4.7/qradiobutton.html QRadioButton] ''[doc.qt.nokia.com]'' is a radio button with a text label.
[[Image:http://doc.qt.nokia.com/4.7/images/windows-checkbox.png|checkbox]]


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


===QToolButton===
&quot;QRadioButton&amp;quot;:http://doc.qt.nokia.com/4.7/qradiobutton.html is a radio button with a text label.


[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]''
[[Image:http://doc.qt.nokia.com/4.7/images/windows-radiobutton.png|radio button]]


[[Image:assistant-toolbar.png|button inside toolbar]]
=== QToolButton ===


==See also==
&quot;QToolButton&amp;quot;:http://doc.qt.nokia.com/4.7/qtoolbutton.html provides a quick-access button to options which are usually used inside a &quot;QToolBar&amp;quot;:http://doc.qt.nokia.com/4.7/qtoolbar.html


[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]''
[[Image:http://doc.qt.nokia.com/4.7/images/assistant-toolbar.png|button inside toolbar]]


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


* [[:Category:Developing with Qt|Developing_with_Qt]]
&quot;Basic Qt Programming Tutorial&amp;quot;:http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial<br />&quot;How to Use QPushButton&amp;quot;:http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton
** [[:Category:Developing with Qt::General|General]]

Revision as of 14:26, 23 February 2015


[toc align_right="yes&quot; depth="3&quot;]

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&quot;:http://doc.qt.nokia.com/4.7/qabstractbutton.html. QAbstractButton inherits "QWidget&quot;: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&quot;: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&quot;:http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton

push button

QCheckBox

"QCheckBox&quot;:http://doc.qt.nokia.com/4.7/qcheckbox.html is a button that look like a checkbox with a text label next to it.

checkbox

QRadioButton

"QRadioButton&quot;:http://doc.qt.nokia.com/4.7/qradiobutton.html is a radio button with a text label.

radio button

QToolButton

"QToolButton&quot;:http://doc.qt.nokia.com/4.7/qtoolbutton.html provides a quick-access button to options which are usually used inside a "QToolBar&quot;:http://doc.qt.nokia.com/4.7/qtoolbar.html

button inside toolbar

See also

"Basic Qt Programming Tutorial&quot;:http://developer.qt.nokia.com/wiki/Basic_Qt_Programming_Tutorial
"How to Use QPushButton&quot;:http://developer.qt.nokia.com/wiki/How_to_Use_QPushButton