Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Avoiding duplicate `objectName` and `id` in Qml



  • I am using objectName to access QQuickItems from C++ for integration tests in C++. I am getting tired of assigning objectName to a duplicate string value and thought I would automatically assign objectName based on the value of id.

    Anyone k now how to do this? Or to accomplish what I am looking to do? It seems like such a waste of time to have such duplicate values for larger apps.

    Thanks!


Log in to reply