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

Q_PROPERTY REQUIRED has no effect on components loaded directly from C++ API

    XMLWordPrintable

Details

    • All
    • 64c27f532 (dev)

    Description

      The REQUIRED keyword in Q_PROPERTY simply does nothing for things loaded by QQmlComponent::loadUrl + beginCreate + completeCreate.

      For the context (no pun intended), I discovered it because in KDE/Plasma some QQuickWindow subclass initializes views from components whose initial properties are set directly on the object one by one, bypassing the modern QQmlComponent::setInitialProperties infrastructure — which is why our kqml tool loads files that qml6 refuses to.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes