Qt Buttons

From Qt Wiki
Revision as of 16:42, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 [doc.qt.nokia.com]. QAbstractButton inherits QWidget [doc.qt.nokia.com] 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 [doc.qt.nokia.com] is a customizable widget for a command button. For more information and example how to use QPushButton please read the following article [developer.qt.nokia.com]

push button

QCheckBox

QCheckBox [doc.qt.nokia.com] is a button that look like a checkbox with a text label next to it.

checkbox

QRadioButton

QRadioButton [doc.qt.nokia.com] is a radio button with a text label.

radio button

QToolButton

QToolButton [doc.qt.nokia.com] provides a quick-access button to options which are usually used inside a QToolBar [doc.qt.nokia.com]

button inside toolbar

See also

Basic Qt Programming Tutorial [developer.qt.nokia.com]
How to Use QPushButton [developer.qt.nokia.com]

Categories: