![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QWindows11Style class provides a look and feel suitable for applications on Microsoft Windows 11. More...
#include <qwindows11style_p.h>
Public Types | |
| enum class | Icon : ushort { AcceptMedium = 0xF78C , Dash12 = 0xE629 , CheckMark = 0xE73E , CaretLeftSolid8 = 0xEDD9 , CaretRightSolid8 = 0xEDDA , CaretUpSolid8 = 0xEDDB , CaretDownSolid8 = 0xEDDC , ChevronDown = 0xE70D , ChevronUp = 0xE70E , ChevronUpMed = 0xE971 , ChevronDownMed = 0xE972 , ChevronLeftMed = 0xE973 , ChevronRightMed = 0xE974 , ChevronUpSmall = 0xE96D , ChevronDownSmall = 0xE96E , ChromeMinimize = 0xE921 , ChromeMaximize = 0xE922 , ChromeRestore = 0xE923 , ChromeClose = 0xE8BB , More = 0xE712 , Help = 0xE897 , Clear = 0xE894 } |
Public Member Functions | |
| QWindows11Style () | |
| Constructs a QWindows11Style object. | |
| ~QWindows11Style () override | |
| Destructor. | |
| void | drawComplexControl (ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const override |
| void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override |
| QRect | subElementRect (QStyle::SubElement element, const QStyleOption *option, const QWidget *widget=nullptr) const override |
| QRect | subControlRect (ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const override |
| void | drawControl (ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override |
| int | styleHint (StyleHint hint, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const override |
| void | polish (QWidget *widget) override |
| QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override |
| int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| void | polish (QPalette &pal) override |
| void | unpolish (QWidget *widget) override |
| QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| void | polish (QApplication *app) override |
| void | unpolish (QApplication *app) override |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| Public Member Functions inherited from QWindowsVistaStyle | |
| QWindowsVistaStyle () | |
| Constructs a QWindowsVistaStyle object. | |
| ~QWindowsVistaStyle () override | |
| Destructor. | |
| void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=nullptr) const override |
| void | drawControl (ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override |
| void | drawComplexControl (ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const override |
| QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const override |
| QRect | subElementRect (SubElement element, const QStyleOption *option, const QWidget *widget) const override |
| QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget) const override |
| SubControl | hitTestComplexControl (ComplexControl control, const QStyleOptionComplex *option, const QPoint &pos, const QWidget *widget=nullptr) const override |
| QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| \reimp | |
| QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget=nullptr) const override |
| int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
| int | styleHint (StyleHint hint, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const override |
| void | polish (QWidget *widget) override |
| void | unpolish (QWidget *widget) override |
| void | polish (QPalette &pal) override |
| void | polish (QApplication *app) override |
| void | unpolish (QApplication *app) override |
Protected Member Functions | |
| QWindows11Style (QWindows11StylePrivate &dd) | |
| Protected Member Functions inherited from QWindowsVistaStyle | |
| QWindowsVistaStyle (QWindowsVistaStylePrivate &dd) | |
Friends | |
| class | QStyleFactory |
The QWindows11Style class provides a look and feel suitable for applications on Microsoft Windows 11.
\inmodule QtWidgets
Definition at line 66 of file qwindows11style_p.h.
|
strong |
Definition at line 70 of file qwindows11style_p.h.
| QWindows11Style::QWindows11Style | ( | ) |
Constructs a QWindows11Style object.
Definition at line 280 of file qwindows11style.cpp.
Referenced by QModernWindowsStylePlugin::create().
|
overridedefault |
Destructor.
|
protected |
Constructs a QWindows11Style object.
Definition at line 288 of file qwindows11style.cpp.
|
override |
see drawPrimitive for comments on the animation support
Definition at line 308 of file qwindows11style.cpp.
References StyleOptionHelper::Hover, QPaintEngine::painter(), StyleOptionHelper::Pressed, and subtleHighlightColor.
|
override |
Definition at line 1360 of file qwindows11style.cpp.
References contentHMargin, contentItemHMargin, and QPaintEngine::painter().
|
override |
Definition at line 854 of file qwindows11style.cpp.
References QPaintEngine::painter(), and QPaintEngine::QPainter.
Definition at line 2846 of file qwindows11style.cpp.
|
override |
Definition at line 2605 of file qwindows11style.cpp.
|
override |
Definition at line 2830 of file qwindows11style.cpp.
Definition at line 2968 of file qwindows11style.cpp.
Definition at line 2704 of file qwindows11style.cpp.
References QWindows11StylePrivate::nativeRoundedTopLevelWindows.
|
override |
Definition at line 2422 of file qwindows11style.cpp.
References contentItemHMargin.
|
override |
Definition at line 3010 of file qwindows11style.cpp.
|
override |
Definition at line 2994 of file qwindows11style.cpp.
|
override |
Definition at line 2063 of file qwindows11style.cpp.
|
override |
Definition at line 2217 of file qwindows11style.cpp.
|
override |
Definition at line 2083 of file qwindows11style.cpp.
References contentHMargin.
|
override |
Definition at line 2838 of file qwindows11style.cpp.
Definition at line 2781 of file qwindows11style.cpp.
References QWindows11StylePrivate::nativeRoundedTopLevelWindows.
|
friend |
Definition at line 148 of file qwindows11style_p.h.