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

Cannot override default anchors in item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.0.0
    • None

      See attached example.

      In MyItem.qml definition, we set anchors.left: parent.left, and when instantiating it, we override it as anchors.left: text.right. The expected result would be to see the red translucent rectangle on the right side of the text, instead it stays anchored to the main item's left side. (Incidentally, anchor margins can be overridden. My mistake, they can't).

        1. QmlAnchrBug.zip
          1 kB
          Gabriel de Dietrich (drgvond)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            w00t Robin Burchell
            dedietri Gabriel de Dietrich (drgvond)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes