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

Cannot override default anchors in item

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes