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

Property binding executes when no one listens

    XMLWordPrintable

Details

    Description

      This is not a bug per se, but if a property "foo" is bound to a script, the script gets executed whenever a variable inside the script changes. This is off course expected when someone listens to "foo". But if not, the script gets executed for nothing.

      In the UI components team we're unsure how to deal with this fact, since we would like to avoid writing our components in a way that makes such code execute all the time, even for properties that gets rarely used. And the UI components will always contain a lot of API that normal applications never will make use of.

      Is this a bug?
      Should we provide functions in the API directly, rather than binding the function to a property? would that improve performance?

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes