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

Support "run at startup" bindings

    XMLWordPrintable

Details

    Description

      It might be useful to allow once-off bindings as an alternative to Component.onCompleted.

      For example, rather than determining initial position by:

      Component.onCompleted: item.x = item.parent.width/3

      You could potentially do something like:

      x: Qt.compute(parent.width/3) // or computeOnce, runAtStartup, etc

      I think this has the advantage of keeping the code "in-place" for the developer

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              mbrasser Michael Brasser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes