Qt Buttons

From Qt Wiki
Revision as of 15:30, 4 March 2015 by AutoSpider (talk | contribs) (Convert ExpressionEngine links)
Jump to navigation Jump to search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

[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. 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

push button

QCheckBox

QCheckBox is a button that look like a checkbox with a text label next to it.

checkbox

QRadioButton

QRadioButton is a radio button with a text label.

radio button

QToolButton

QToolButton provides a quick-access button to options which are usually used inside a QToolBar

button inside toolbar

See also

Basic Qt Programming Tutorial How to Use QPushButton