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

Cannot change the type of member used in the Q_PROPERTY without breaking compatibility

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Other
    • None

    Description

      "Changing the type of a Q_PROPERTY is not formally an API or ABI break AFAICS, but it will still break every QML application that uses this property because int is natively representable in JavaScript and qint64 is not. The metaobject mechanism detects the types at run time. Re-compilation of user code doesn't affect that. It will still see that it's now qint64. We may have some interesting type coercion around that "fixes" the problem in some cases, but I wouldn't rely on it." ~ see this

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              kokujawa Konrad Kujawa (Inactive)
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes