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

Positioner's (row, column, grid, flow) positioning routines (prePositioning, doPositioning) are executed multiple times during construction

XMLWordPrintable

      Following code causes the row's positioning functions to be called four times (once after componentComplete, three times from itemVisibilityChanged). Ideally positioning would only be done once during construction.

      import Qt 4.7
      Row {
          spacing: 2
          Rectangle { color: "red"; width: 50; height: 50; anchors.left: greenRect.right }
          Rectangle { id: greenRect; color: "green"; width: 20; height: 50 }
          Rectangle { color: "blue"; width: 50; height: 20 }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes