Re: objectName property doesn't work as expected in C++ defined QML classes
Originally Posted by anda_skoa
Is your "Gate" element the top element itself? I.e. it is "root"?
In any case, you probably don't need that at all, it is very uncommon to access QML instantiated objects like that.
Cheers,
_
No, it is not root, it is a child of the ApplicationWindow. I wonder why it is uncommon. If you have some objects in main.cpp how do you link objects in QML to those that are located in main.cpp at application startup from main.cpp itself ?
Bookmarks