diff options
-rw-r--r-- | tests/manual/quickcontrols/testbench/controls/MenuBar.qml | 4 | ||||
-rw-r--r-- | tests/manual/quickcontrols/testbench/main.cpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/testbench/controls/MenuBar.qml b/tests/manual/quickcontrols/testbench/controls/MenuBar.qml index 3ea2e2be83..0d53cf8cb6 100644 --- a/tests/manual/quickcontrols/testbench/controls/MenuBar.qml +++ b/tests/manual/quickcontrols/testbench/controls/MenuBar.qml @@ -15,18 +15,22 @@ QtObject { property Component component: MenuBar { MenuBarItem { text: qsTr("Normal") + menu: Menu { Action { text: "action" } } } MenuBarItem { text: qsTr("Pressed") down: true + menu: Menu { Action { text: "action" } } } MenuBarItem { text: qsTr("Highlighted") highlighted: true + menu: Menu { Action { text: "action" } } } MenuBarItem { text: qsTr("Disabled") enabled: false + menu: Menu { Action { text: "action" } } } } } diff --git a/tests/manual/quickcontrols/testbench/main.cpp b/tests/manual/quickcontrols/testbench/main.cpp index 14da6e7b2c..f0ae272cd9 100644 --- a/tests/manual/quickcontrols/testbench/main.cpp +++ b/tests/manual/quickcontrols/testbench/main.cpp @@ -18,6 +18,8 @@ int main(int argc, char *argv[]) { QGuiApplication::setApplicationName("testbench"); QGuiApplication::setOrganizationName("QtProject"); + QGuiApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); + QGuiApplication::setAttribute(Qt::AA_DontUseNativeMenuWindows); QGuiApplication app(argc, argv); |