The documentation on working with QtScript and converting back and forth between script values and C++ mentions that you can use QScriptEngine.toScriptValue with a QObject* type and have it work automatically, casting the object and returning a script reference accordingly. Does this same behavior hold with a QPointer<QObject>
or do I have to create my own metatype? If so, does it also work for dealing with QPointers to a QObject subclass?
The main thing I'm interested in is whether or not the properties declared using Q_PROPERTY of a QObject subclass will automatically be brought into script if I call QScriptEngine.toScriptValue on a QPointer to a subclass instance instead of a regular pointer.