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

Odd behavior with destroyed object in expression

    XMLWordPrintable

Details

    • 1a0c2fb5bdaed175c9d9472b0658f93214572d4d (qt/qtdeclarative/dev)

    Description

      Code like this results in null value in data after an object held in contextData (context property) has been destroyed:

          property var data: contextData || 0
          onDataChanged: console.log(data)
      

      If contextData is set to nullptr, this results in 0 instead which seems more valid.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            poikelin Joni Poikelin
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes