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

CLONE - Made visible part of delegate while window is not visible breaks items layout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.1.0
    • Labels:
      None
    • Environment:
      Qt 5.0.1, QtQuick 2.0, Windows 7, msvc2010

      Description

      I have some strange behavior of QtQuick 2.0.
      I have a Repeater placed into Row. Delegate has small rectangle inside, that has visibility binded to one property of the main component (by default item is invisible) (http://joxi.ru/uploads/prod/20130325/305/a71/d4c2aede74c9863e4d94ac7930176f55d0f1dfd1.png). Then I made main window invisible, change property that delegate visibility has bound to true, and then made main window visible. In result I got all items muddled together (http://joxi.ru/uploads/prod/20130325/31e/e95/f429216a502a2ad1fc49836f61073629ece9e269.png). qml file in the attachment (RepeaterInvisible_1.qml).

      I have found two cases, where items placed correctly.
      1. Made that item visible from the beginning: comment line "visible: showMark". In result, all items placed correctly (http://joxi.ru/uploads/prod/20130325/7b0/881/54a514275c910a75834f0cd825917980d43feebf.png).
      2. Wrap delegate into additional Rectangle (RepeaterInvisible_2.qml).

        Attachments

        1. RepeaterInvisible_1.qml
          2 kB
          Nikita Krupenko
        2. RepeaterInvisible_2.qml
          2 kB
          Nikita Krupenko
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            aalpert Alan Alpert
            Reporter:
            krnekit Nikita Krupenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes