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

When createting Rectangles with Repeater element and tries to set opacity to 0 in Component.onCompleted unexpectedly 2 Rectangles disseppear.

    XMLWordPrintable

Details

    • adcb5f115ff768fe68883f392c00e6d2945a377c

    Description

      When creates Rectangles with Repeater element and tries to set opacity to 0 in Component.onCompleted unexpectedly 2 Rectangles seem to disseppear. When degugged it with my QtCreator I notice that one Rectangle actually doesn't disappear, but goes under other element (check x property of last Rectangle). Run code below . Unexpectedly two rectangles disappear.

      import Qt 4.7

      Rectangle {
      width: 640
      height: 480

      Component.onCompleted:

      { grid.children[2].opacity = 0; }

      Grid{
      id: grid
      rows: 2
      columns: 4
      spacing: 2
      Repeater{
      model: 5
      delegate: Rectangle

      {width: 50-(index*5); height: 50-(index*5); color: "red"}

      }
      }
      }

      Attachments

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

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            martti Martti Hyvönen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes