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

Window geometry set incorrectly set at first show

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.1, 5.1.0 Beta 1
    • None
    • Mac OSX
    • macOS

    Description

      When creating a child window and assigning x or y coordinates, the bindings only work after the target window has been resized or moved first. Otherwise both the x and y coordinates are set to 0.

       
      import QtQuick 2.1
      import QtQuick.Window 2.1
      import "content"
      
      Window {
      
          id: root
          width: 580
          height: 400
          Window {
              id: subWindow
              visible: true
              y: root.y + root.height
              x: root.x
          }
      }
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes