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

Anchor is not set to undefined on property binding

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.0
    • None
    • Linux (Ubuntu 12.04), Qt5 (316b2b51e3fc6c47106)

    Description

      Here I have an element that will alternate its alignment inside the parent once you click it. It will start aligned to right, then if you click, it will align to left, and switch back again on the next click.

      The working-example.qml shows this test case working. I'm using AnchorChanges and alternating states. The next file bug.qml shows the same case but using property binding instead. I set to undefined if I don't want to align on that corner. The problem is once you click the first time, the element is indeed aligned to left, which is ok, but if you click again, then the square element become a rectangle that is anchored to both parent's left and right.

      Attachments

        1. bug.qml
          0.5 kB
        2. working-example.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            rafael.lobo Rafael Brandao Lobo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes