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

QObject that was previously exposed to QML as a const pointer remains frozen

XMLWordPrintable

    • d3b3fef5a8 (qt/qtdeclarative/dev) d3b3fef5a8 (qt/tqtc-qtdeclarative/dev) ddbfe3c9e1 (qt/qtdeclarative/6.4) ddbfe3c9e1 (qt/tqtc-qtdeclarative/6.4)

      When a QObject is returned to QML as a const pointer it is frozen and properties on that object can't be updated, when we access the same object through a non-const pointer at a later time it is still frozen and we can't update properties on that object.

       

      Short reproducible case: https://github.com/walterbrebels/qobject-frozen

       

      With Qt5 this example works fine. This lead to bugs that are hard to troubleshoot because it's unclear what triggered an object to become frozen when we detect that it can't be modified anymore.

       

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

            ulherman Ulf Hermann
            wbrebels Walter Brebels
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes