Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1
-
None
-
efc41eaa7224c33b5b5af7eae27c93c6748255bc
Description
Looking at the online docs here:
http://doc.qt.nokia.com/4.7/qdeclarativeengine.html#qmlRegisterType
Since qmlRegisterType is listed as related to QDeclarativeEngine it would seem logical to #include <QDeclarativeEngine> in order to be able to use the qmlRegisterType function. However, this is not the case. Instead, you must #include <qdeclarative.h>. This is not mentioned in the documentation. I actually had to grep the source code to figure this out!