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

var property emits a changed signal if it is initialized with an object or null value

    XMLWordPrintable

Details

    • 0b863bca305ad43b3c48287ec4e62e262c8e8849

    Description

      This causes issues with QML Settings for example as it will always override the value that Settings loads from the settings file.

      For example, this changed signal is called when the item is created:

      Item {
       property var foo: null
       onFooChanged: console.log(foo)
      }
      

      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:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes