Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124555

QtQuick.Controls2 ApplicationWindow's menu bar does not works with kde's global appmenu

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.6.3
    • Quick: Controls 2
    • None
    • openSUSE Leap 15.5 x86_64/X11/KDE

    • Linux/X11

      Althrougth the MenuBar in QtWidgets module works with KDE's global appmenu, but MenuBar in QtQuick.Controls2 does not, it will always stays in the app's frame, never shown in the KDE's global appmenu!

      Reproduce steps:

      1. add an applicatin menu panel in the plasma desktop
      2. create a quick app in the qtcreator
      3. modify the Main.qml, make it as the following:
        import QtQuick
        import QtQuick.ControlsApplicationWindow {
            width: 640
            height: 480
            visible: true
            title: qsTr("Hello World")
            menuBar: MenuBar {
                Menu {
                    id: menu
                    title: "AA"
                    MenuItem {
                        text: "BBB"
                    }
                }
                Menu {
                    title: "BB"
                    MenuItem {
                        text: "BBB"
                    }
                }
                Menu {
                    title: "CC"
                    MenuItem {
                        text: "BBB"
                    }
                }
            }
        } 

        4. Run it

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sauntor sauntor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes