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

Drawer: visual stacking order is the opposite of the declaration order

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • bc0fdae8fad4e199792b3f00ebcb74bd80473227

    Description

      One would expect the right drawer to have higher visual stacking order, but it appears below:

      import QtQuick 2.6
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          width: 400
          height: 400
      
          property alias leftDrawer: leftDrawer
          property alias leftButton: leftButton
      
          property alias rightDrawer: rightDrawer
          property alias rightButton: rightButton
      
          property alias contentButton: contentButton
      
          Drawer {
              id: leftDrawer
              width: 300
              height: 400
      
              contentItem: Button {
                  id: leftButton
                  text: "Left"
              }
          }
      
          Button {
              id: contentButton
              text: "Content"
              anchors.fill: parent
          }
      
          Drawer {
              id: rightDrawer
              width: 300
              height: 400
              edge: Qt.RightEdge
      
              contentItem: Button {
                  id: rightButton
                  text: "Right"
              }
          }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: