On 01/26/2011 12:16 PM, Lindeijer Thorbjorn (Nokia-MS-Qt/Berlin) wrote:
> Apparently there is a small bug in the documentation of QML_DECLARE_TYPE
> (I'm having trouble finding the source of these docs), in that it fails
> to mention that it declares a pointer to the type as meta type rather
> than the type itself. This means the "copy constructor" is implicitly
> present as it is for all pointers.
>
> #define QML_DECLARE_TYPE(TYPE) \
>       Q_DECLARE_METATYPE(TYPE *) \
>       Q_DECLARE_METATYPE(QDeclarativeListProperty<TYPE>)

Btw, I've now pushed a fix for the documentation of this macro to the 
doc-team staging repository.

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Development Frameworks
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to