Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[SOLVED] Custom QML element init

$
0
0
Hm, thank you very much, I’ll now go and derive from QDeclarativeParserStatus. I didn’t want QDeclarativeItem because I don’t need all of those built-in utils for visualization, but this status-class is exactly what I need. QDeclarativeParserStatus provides a mechanism for classes instantiated by a QDeclarativeEngine to receive notification at key points in their creation. This class is often used for optimization purposes, as it allows you to defer an expensive operation until after all the properties have been set on an object. UPD: now found the final solution: QQmlParserStatus class (tor QtQml from Qt5). It is identical to the class above, but for those who use new QtQml module and not Declarative.

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images