Important: Please read the 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.


Log in to reply