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.
↧