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

Need a way to avoid redundant function calls

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: