开发者

CSS in Qt Creator

开发者 https://www.devze.com 2023-01-02 09:31 出处:网络
I 开发者_运维技巧can\'t find anything on this topic, is it possible to use CSS files in Qt or do I have to use setStyleSheet on every element I want to style?

I 开发者_运维技巧can't find anything on this topic, is it possible to use CSS files in Qt or do I have to use setStyleSheet on every element I want to style?

I can't say its very maintainable if I have to write all the styles in quotes.


You can use -stylesheet to specify a stylesheet on the command line. In addition, you could load your .qss file from a file or a resource and then call setStylesheet on your QApplication instance.

0

精彩评论

暂无评论...
验证码 换一张
取 消