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

QML should handle QSharedPointer<QObjectDerived> types

XMLWordPrintable

      It should be possible to read Q_PROPERTY(QSharedPointer<QObjectDerived>) from QML, use setContextProperty with a QVariant containing a QSharedPointer<QObjectDerived> or otherwise make such a type useful in the QML environment.

      Q_DECLARE_SMART_POINTER_METATYPE needs to be extended to register a conversion from QSharedPointer<QObjectDerived> to QSharedPointer<QObject> (and perhaps a conversion for std::shared_ptr too).

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

            qtqmlteam Qt Qml Team User
            ske Steve
            Votes:
            20 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes