PySide6.QtWidgets.QCommandLinkButton¶
- class QCommandLinkButton¶
The
QCommandLinkButton
widget provides a Vista style command link button. More…Synopsis¶
Properties¶
descriptionᅟ
- A descriptive label to complement the button textflatᅟ
- This property determines whether the button is displayed as a flat panel or with a border
Methods¶
def
__init__()
def
description()
def
setDescription()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The command link is a new control that was introduced by Windows Vista. Its 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
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property descriptionᅟ: str¶
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:
- property 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.
See also
flat
Access functions:
Constructs a command link with no text and a
parent
.- __init__(text[, parent=None])
- Parameters:
text – str
parent –
QWidget
Constructs a command link with the parent
parent
and the texttext
.- __init__(text, description[, parent=None])
- Parameters:
text – str
description – str
parent –
QWidget
Constructs a command link with a
text
, adescription
, and aparent
.- description()¶
- Return type:
str
See also
Getter of property
descriptionᅟ
.- setDescription(description)¶
- Parameters:
description – str
See also
Setter of property
descriptionᅟ
.