简体   繁体   中英

Add CSS component to Qt QML

I am new to QML, so I wanted to ask.. is it possible to import/convert/use CSS templates in QT? because I found many stylish CSS component. more than QML templates.

QML by default allows CSS styling with limited options. The limitations are mentioned here .

But if your intention is to add a.css file into the project and make that as a style sheet then there is no default way.

Here is the out of the box project with GitHub, which allows direct integration of CSS style sheets into QML. You can refer to theexamples in that project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM