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

Qt.labs.platform MenuSeparator not painted on Windows

    XMLWordPrintable

Details

    • 9f77854d284cf6cd209d8055400c04ca8312c3f3 (qtbase/5.11, 1.3.2018, 5.11)

    Description

      import QtQuick 2.10
      import QtQuick.Window 2.3
      
      import Qt.labs.platform 1.0 as Platform
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
      
          Platform.MenuBar {
              Platform.Menu {
                  id: fileMenu
                  objectName: "fileMenu"
                  title: qsTr("File")
      
                  Platform.MenuItem {
                      text: qsTr("New")
                  }
      
                  Platform.MenuItem {
                      text: qsTr("Open")
                  }
      
                  Platform.MenuItem {
                      text: qsTr("Save")
                  }
              }
      
              Platform.Menu {
                  title: qsTr("Edit")
      
                  Platform.MenuItem {
                      text: qsTr("Undo")
                  }
      
                  Platform.MenuItem {
                      text: qsTr("Redo")
                  }
      
                  Platform.MenuSeparator {}
      
                  Platform.MenuItem {
                      text: qsTr("Copy")
                  }
      
                  Platform.MenuItem {
                      text: qsTr("Paste")
                  }
      
                  Platform.MenuSeparator {}
      
                  Platform.MenuItem {
                      text: qsTr("Select All")
                  }
      
                  Platform.MenuSeparator {}
      
                  Platform.MenuItem {
                      text: qsTr("Flip Horizontally")
                  }
      
                  Platform.MenuItem {
                      text: qsTr("Flip Vertically")
                  }
              }
          }
      }
      

      Expected:

      Actual:

      Attachments

        1. qtbug66642.qml
          1 kB
        2. qtbug66642_mdi.jpg
          qtbug66642_mdi.jpg
          127 kB
        3. notepad-menu.PNG
          notepad-menu.PNG
          7 kB
        4. labs-menu.PNG
          labs-menu.PNG
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes