Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QCommandLinkButton Class

TheQCommandLinkButton widget provides a Vista style command link button.More...

Header:#include <QCommandLinkButton>
Since: Qt 4.4
Inherits:QPushButton

Properties

Public Functions

QCommandLinkButton(QWidget * parent = 0)
QCommandLinkButton(const QString & text, QWidget * parent = 0)
QCommandLinkButton(const QString & text, const QString & description, QWidget * parent = 0)
QStringdescription() const
voidsetDescription(const QString & description)

Reimplemented Protected Functions

virtual boolevent(QEvent * e)
virtual intheightForWidth(int width) const
virtual QSizeminimumSizeHint() const
virtual voidpaintEvent(QPaintEvent *)
virtual QSizesizeHint() const

Additional Inherited Members

Detailed Description

TheQCommandLinkButton 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 alsoQPushButton andQRadioButton.

Property Documentation

description :QString

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:

QStringdescription() const
voidsetDescription(const QString & description)

flat :bool

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:

boolisFlat() const
voidsetFlat(bool)

See alsoQPushButton::flat.

Member Function Documentation

QCommandLinkButton::QCommandLinkButton(QWidget * parent = 0)

Constructs a command link with no text and aparent.

QCommandLinkButton::QCommandLinkButton(constQString & text,QWidget * parent = 0)

Constructs a command link with the parentparent and the texttext.

QCommandLinkButton::QCommandLinkButton(constQString & text, constQString & description,QWidget * parent = 0)

Constructs a command link with atext, adescription, and aparent.

[virtual protected]bool QCommandLinkButton::event(QEvent * e)

Reimplemented fromQObject::event().

[virtual protected]int QCommandLinkButton::heightForWidth(int width) const

Reimplemented fromQWidget::heightForWidth().

[virtual protected]QSize QCommandLinkButton::minimumSizeHint() const

Reimplemented fromQWidget::minimumSizeHint().

[virtual protected]void QCommandLinkButton::paintEvent(QPaintEvent *)

Reimplemented fromQWidget::paintEvent().

[virtual protected]QSize QCommandLinkButton::sizeHint() const

Reimplemented fromQWidget::sizeHint().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp