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

Menu does not propagate Material style to submenus with popupType: Popup.Window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9.0
    • None
    • Linux/Wayland, Windows

      Expected:

      Actual:

      Minimal working example:

      import QtQuick
      import QtQuick.Controls.Material
      
      ApplicationWindow {
          id: root
      
          readonly property string textContent: "0 1 2 3 4 5 6 7 8 9"
      
          width: 640
          height: 480
          visible: true
      
          font.family: 'Consolas'
      
          Material.theme: Material.Dark
          Material.accent: "#d6bfff"
      
          menuBar: MenuBar {
              Menu {
                  title: "Popup.Item (propagates)"
                  popupType: Popup.Item
                  Menu {
                      title: textContent
                      Action { text: textContent }
                  }
              }
              Menu {
                  title: "Popup.Window (!propagates)"
                  popupType: Popup.Window
                  Menu {
                      title: textContent
                      Action { text: textContent }
                  }
              }
          }
      
          Menu {
              id: someMenu
      
              popupType: Popup.Window
              modal: true
              dim: false
      
              Menu {
                  title: textContent
                  Action { text: textContent }
              }
          }
      
          Button {
              text: "another Popup.Window (!propagates)"
              anchors.centerIn: root.contentItem
      
              onClicked: {
                  someMenu.open()
              }
          }
      }
      

        1. image-2025-08-27-22-47-33-965.png
          26 kB
          Elias Müller
        2. image-2025-08-27-22-47-48-045.png
          25 kB
          Elias Müller
        For Gerrit Dashboard: QTBUG-139603
        # Subject Branch Project Status CR V

            santhoshkumar Santhosh Kumar Selvaraj
            trin94 Elias Müller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change