Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13849 QML versioning support
  3. QTBUG-13850

Support different behaviors under different versions

    XMLWordPrintable

Details

    Description

      If an existing class would greatly benefit from a behavioral change, it would be nice to if the class could, for example, query what version it was instantiated under, and act differently according to the version.

      if (runtimeMajor == 1 and runtimeMinor == 0) {
          doSomething(); //old behavior
      } else {
          doSomethingElse(); //new behavior
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            brasser Michael Brasser (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes