for create style for qmlobject like Rectangle is possible we define css class?
Solved
QML and Qt Quick
-
hi,you have a idea that we define css class like :
.info-rect{ color:blue; font-point:12; } .warn-rect{ color:red; font-point:8; }
i want to define class in css and i use it in qml type;
i.e.
we want to have:Rectangle{id:myrect; class:info-rect; }
do you have a solution?
-
-
One way would be to implement a styling C++ class that parses your style sheet and that you would use to style your app.