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

Details

    Description

      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 }
      }
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes