Whether QML has a “class” attribute just like CSS?
-
whether QML has a “class” attribute just like CSS,that it can describe multiple elements with the same of properties ?
-
No there is not built in mechanism for this. It can however be added on top of QML, which is what Ubuntu is doing on their components: http://developer.ubuntu.com/api/ubuntu-12.10/qml/mobile/qml-ubuntu-components0-itemstyle.html