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

QQuickItemPrivate::anchors creating anchors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.9.4
    • None

    Description

      Calling QQuickItemPrivate::anchors auto-creates the anchors, when not being allocated before.

      This hurts as tools like GammaRay iterate over all properties to display their current value - accidentally changing the object tree + creating pointless classes + giving wrong results in this case.

      In general I would recommend not offering any sort of property read methods with side effects - especially when being declared as const.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes