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

Need a way to avoid redundant function calls

XMLWordPrintable

      It is common for a function to be bound to a change-signal in order to
      adjust some aspect of the QML element to the new value of the property.

      But often the change to the property is incremental rather than atomic,
      meaning that there are multiple change-signals sent in quick succession,
      of which only the final one is of interest. This means a lot of time
      spent on executing the function is wasted.

      A way of postponing the execution of a function is needed, such that
      the function is only executed if there has not been another call to
      execute the function for some short period of time.

        1. delayedfunction1.diff
          9 kB
          Christopher Adams (closed Nokia identity)
        2. qtlatertests1.diff
          9 kB
          Christopher Adams (closed Nokia identity)
        3. StoredQPairOptimization.diff
          5 kB
          Mathias Malmqvist
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shausman Simon Hausmann
            mathiasm Mathias Malmqvist
            Votes:
            14 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes