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

QML should handle QSharedPointer<QObjectDerived> types

    XMLWordPrintable

Details

    Description

      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).

      Attachments

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              ske Steve
              Votes:
              17 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes