QStyleOptionMenuItemV2 Class
Die Klasse QStyleOptionMenuItemV2 erweitert QStyleOptionMenuItem um neue Mitglieder. Mehr...
| Kopfzeile: | #include <QStyleOptionMenuItemV2> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets)target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| Seit: | Qt 6.11 |
| Vererbt: | QStyleOptionMenuItem |
Öffentliche Funktionen
| QStyleOptionMenuItemV2() | |
| QStyleOptionMenuItemV2(const QStyleOptionMenuItemV2 &other) |
Öffentliche Variablen
| bool | mouseDown |
Dokumentation der Mitgliedsfunktionen
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2()
Konstruiert ein QStyleOptionMenuItemV2, wobei die Variablen der Mitglieder auf ihre Standardwerte initialisiert werden.
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2(const QStyleOptionMenuItemV2 &other)
Konstruiert eine Kopie der Stiloption other.
Dokumentation der Mitgliedsvariablen
bool QStyleOptionMenuItemV2::mouseDown
true, wenn die Maus gedrückt ist.
Dies ist notwendig, da es keinen Unterschied zwischen einem gedrückten und einem versenkten Zustand gibt, wenn QStyle::State_Sunken gesetzt ist. QStyle::State_Sunken wird auch gesetzt, wenn das Menü geöffnet ist (d.h. das Popup-Menü angezeigt wird)
© 2026 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 the GNU 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.