[Qt-qml] QML C++ Plugin template in Qt Creator
Thorbjørn Lindeijer
thorbjorn.lindeijer at nokia.com
Wed Jan 26 13:57:13 CET 2011
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
More information about the Qt-qml
mailing list