![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\variable QStyleOptionDockWidget::title More...
#include <qstyleoption.h>
Public Types | |
enum | StyleOptionType { Type = SO_ToolButton } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More... | |
enum | StyleOptionVersion { Version = 1 } |
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More... | |
enum | ToolButtonFeature { None = 0x00 , Arrow = 0x01 , Menu = 0x04 , MenuButtonPopup = Menu , PopupDelay = 0x08 , HasMenu = 0x10 } |
Describes the various features that a tool button can have. More... | |
![]() | |
enum | StyleOptionType { Type = SO_Complex } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More... | |
enum | StyleOptionVersion { Version = 1 } |
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More... | |
![]() | |
enum | OptionType { SO_Default , SO_FocusRect , SO_Button , SO_Tab , SO_MenuItem , SO_Frame , SO_ProgressBar , SO_ToolBox , SO_Header , SO_DockWidget , SO_ViewItem , SO_TabWidgetFrame , SO_TabBarBase , SO_RubberBand , SO_ToolBar , SO_GraphicsItem , SO_Complex = 0xf0000 , SO_Slider , SO_SpinBox , SO_ToolButton , SO_ComboBox , SO_TitleBar , SO_GroupBox , SO_SizeGrip , SO_CustomBase = 0xf00 , SO_ComplexCustomBase = 0xf000000 } |
This enum is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. More... | |
enum | StyleOptionType { Type = SO_Default } |
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. More... | |
enum | StyleOptionVersion { Version = 1 } |
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. More... | |
Public Member Functions | |
QStyleOptionToolButton () | |
Constructs a QStyleOptionToolButton, initializing the members variables to their default values. | |
QStyleOptionToolButton (const QStyleOptionToolButton &other) | |
Constructs a copy of the other style option. | |
QStyleOptionToolButton & | operator= (const QStyleOptionToolButton &)=default |
![]() | |
QStyleOptionComplex (int version=QStyleOptionComplex::Version, int type=SO_Complex) | |
Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables to their default values. | |
QStyleOptionComplex (const QStyleOptionComplex &other) | |
Constructs a copy of the other style option. | |
QStyleOptionComplex & | operator= (const QStyleOptionComplex &)=default |
![]() | |
QStyleOption (int version=QStyleOption::Version, int type=SO_Default) | |
Constructs a QStyleOption with the specified version and type. | |
QStyleOption (const QStyleOption &other) | |
Constructs a copy of other. | |
~QStyleOption () | |
Destroys this style option object. | |
void | initFrom (const QWidget *w) |
QStyleOption & | operator= (const QStyleOption &other) |
Assign other to this QStyleOption. | |
Public Attributes | |
ToolButtonFeatures | features |
QIcon | icon |
QSize | iconSize |
QString | text |
Qt::ArrowType | arrowType |
Qt::ToolButtonStyle | toolButtonStyle |
QPoint | pos |
QFont | font |
![]() | |
QStyle::SubControls | subControls |
QStyle::SubControls | activeSubControls |
![]() | |
int | version |
int | type |
QStyle::State | state |
Qt::LayoutDirection | direction |
QRect | rect |
QFontMetrics | fontMetrics |
QPalette | palette |
QObject * | styleObject |
Protected Member Functions | |
QStyleOptionToolButton (int version) | |
Additional Inherited Members | |
![]() | |
template< typename T > T | qstyleoption_cast (const QStyleOption *option) |
\variable QStyleOptionTitleBar::text | |
template< typename T > T | qstyleoption_cast (QStyleOption *option) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
\variable QStyleOptionDockWidget::title
the title of the dock window
The default value is an empty string.
\variable QStyleOptionDockWidget::closable
whether the dock window is closable
The default value is true.
\variable QStyleOptionDockWidget::movable
whether the dock window is movable
The default value is false.
\variable QStyleOptionDockWidget::floatable
whether the dock window is floatable
The default value is true.
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button.
\inmodule QtWidgets
QStyleOptionToolButton contains all the information that QStyle functions need to draw QToolButton.
For performance reasons, there are few member functions and the access to the member variables is direct (i.e., using the . or
->
operator). This makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
Definition at line 545 of file qstyleoption.h.
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
\value Type The type of style option provided (\l{SO_ToolButton} for this class).
The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles.
Enumerator | |
---|---|
Type |
Definition at line 548 of file qstyleoption.h.
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
\value Version 1
The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.
Enumerator | |
---|---|
Version |
Definition at line 549 of file qstyleoption.h.
Describes the various features that a tool button can have.
\value None A normal tool button. \value Arrow The tool button is an arrow. \value Menu The tool button has a menu. \value PopupDelay There is a delay to showing the menu. \value HasMenu The button has a popup menu. \value MenuButtonPopup The button should display an arrow to indicate that a menu is present.
Enumerator | |
---|---|
None | |
Arrow | |
Menu | |
MenuButtonPopup | |
PopupDelay | |
HasMenu |
Definition at line 551 of file qstyleoption.h.
QStyleOptionToolButton::QStyleOptionToolButton | ( | ) |
Constructs a QStyleOptionToolButton, initializing the members variables to their default values.
Definition at line 2327 of file qstyleoption.cpp.
|
inline |
Constructs a copy of the other style option.
Definition at line 565 of file qstyleoption.h.
|
protected |
Definition at line 2335 of file qstyleoption.cpp.
|
default |
Qt::ArrowType QStyleOptionToolButton::arrowType |
Definition at line 559 of file qstyleoption.h.
ToolButtonFeatures QStyleOptionToolButton::features |
Definition at line 555 of file qstyleoption.h.
Referenced by testing.tools.test_runner._PerProcessConfig::InitializeFeatures().
QFont QStyleOptionToolButton::font |
Definition at line 562 of file qstyleoption.h.
QIcon QStyleOptionToolButton::icon |
Definition at line 556 of file qstyleoption.h.
QSize QStyleOptionToolButton::iconSize |
Definition at line 557 of file qstyleoption.h.
QPoint QStyleOptionToolButton::pos |
Definition at line 561 of file qstyleoption.h.
QString QStyleOptionToolButton::text |
Definition at line 558 of file qstyleoption.h.
Qt::ToolButtonStyle QStyleOptionToolButton::toolButtonStyle |
Definition at line 560 of file qstyleoption.h.