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

Using non-creatable type in QML

$
0
0
I understood you. As I said, you cannot declare a property whose type is uncreatable in a QML object declaration. No, you’re not correct is stating that the only use for uncreatable types is for declaring globals via context properties. They are also useful as properties of C++-defined types, as I explained in my original response. Your expectation is basically correct, but due to the way that property declaration occurs in a QML object instance, this also means that you cannot declare properties of such uncreatable types in QML. It’s not a bug. It’s expected (although I agree suboptimal) behaviour. Cheers, Chris.

Viewing all articles
Browse latest Browse all 4972

Trending Articles