Templates in QML
-
My thought is to create various templates in QML, thus user can freely reuse the component that has been created. Can this re-usability features created in QML?
can anyone direct me to a link or give some direction, pointers?
-
Hi,
Could you please be clearer ?
Is it similar to css stylesheet for html ? -
Yes. Cascading Style Sheets equivalent.
-
I saw a wiki article : http://qt-project.org/wiki/QmlStyling
Though I haven't tried it before, but It's worth trying.
Futhermore, Qt Quick Control defined styles component .
For example: Button Style : http://qt-project.org/doc/qt-5/qml-qtquick-controls-styles-buttonstyle.htmlThis is source code to implement button style above :
https://qt.gitorious.org/qt/qtquickcontrols/source/d0eadc7b164d2f00cd19885907d57a4e1aa02d4b:src/styles/Base/ButtonStyle.qml