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

Qt6 QProperty should be markable as dirty manually

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 6.1.0 Alpha, 6.1
    • 6.0.0 Beta5
    • Core: Object Model
    • None
    • All
    • 10bf3ae90cadbec44c6007190bf16e3c9c7652d8 (qt/qtbase/dev)

    Description

      Many Projects are moved from Qt 5.15 to Qt 6, there are many Properties, defined over the "old" way. Since those are incompatible to the new Qt 6 Property system, one must implement a way to invalidate all QProperties depending on Qt5 Q_PROPERTIES as soon the latter changes. Currently, I don't see a way to do this without writing unintended hacks like
      ```
      connect(this, &Class::qt5PropertyChanged, [&]

      { qt6Property.setBinding(qt6Property.takeBinding()); }

      );
      ```

      I would like to have either a hint in the documentation of the Property system or a function like `QProperty::invalidate()` / `QProperty::markDirty()`.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            febbe Fabian Keßler
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes