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

QtQuick.Controls Drawer component ignores "y" parametr

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • Windows 10, Qt Creator 4.0.3, Qt 5.7
    • 244356ba182c2807ef9b15eb71ac16a568d65642

    Description

      I don't know, may be its not a bug, but I want to put Drawer a litle bit below, for example below menuBar
      As I know, Drawer inherits Popup, and there is no problem with Popup to set "y", "x" parametrs, so why Drawer ignores?

      import QtQuick 2.7
      import QtQuick.Window 2.0
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          title: qsTr("Hello World")
          width: 480
          height: 800
          visible: true
      
          Drawer {
              id: drawer
              height: parent.height - 100
              width: parent.width * 0.7
              y: 100
              Component.onCompleted: console.log("drawer: ", x, y);
          }
      
          Button {
              text: "date picker"
              y: 100
              onClicked: drawer.open()
              Component.onCompleted: console.log("button: ", x, y);
          }
      }
      

      Here are console output after application started

      qml: button:  0 100
      qml: drawer:  0 0
      

      PS: topMargin, topPadding also ignored, so I don't know how to put lower

      Attachments

        For Gerrit Dashboard: QTBUG-55360
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            ilnuribat Ilnur Ibatullin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes