The QCommandLinkButton widget provides a Vista style command link button. More...
#include <QCommandLinkButton>
Inherits: QPushButton.
This class was introduced in Qt 4.4.
QCommandLinkButton ( QWidget * parent = 0 ) | |
QCommandLinkButton ( const QString & text, QWidget * parent = 0 ) | |
QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 ) | |
QString | description () const |
void | setDescription ( const QString & description ) |
virtual bool | event ( QEvent * e ) |
virtual int | heightForWidth ( int width ) const |
virtual QSize | minimumSizeHint () const |
virtual void | paintEvent ( QPaintEvent * ) |
virtual QSize | sizeHint () const |
The QCommandLinkButton widget provides a Vista style command link button.
The command link is a new control that was introduced by Windows Vista. It's intended use is similar to that of a radio button in that it is used to choose between a set of mutually exclusive options. Command link buttons should not be used by themselves but rather as an alternative to radio buttons in Wizards and dialogs and makes pressing the "next" button redundant. The appearance is generally similar to that of a flat pushbutton, but it allows for a descriptive text in addition to the normal button text. By default it will also carry an arrow icon, indicating that pressing the control will open another window or page.
See also QPushButton and QRadioButton.
This property holds a descriptive label to complement the button text.
Setting this property will set a descriptive text on the button, complementing the text label. This will usually be displayed in a smaller font than the primary text.
Access functions:
QString | description () const |
void | setDescription ( const QString & description ) |
This property holds this property determines whether the button is displayed as a flat panel or with a border.
By default, this property is set to false.
Access functions:
bool | isFlat () const |
void | setFlat ( bool ) |
See also QPushButton::flat.
Constructs a command link with no text and a parent.
Constructs a command link with the parent parent and the text text.
Constructs a command link with a text, a description, and a parent.
Reimplemented from QObject::event().
Reimplemented from QWidget::heightForWidth().
Reimplemented from QWidget::minimumSizeHint().
Reimplemented from QWidget::paintEvent().
Reimplemented from QWidget::sizeHint().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.