简体   繁体   中英

KDE themes used to style Qt4 application

可以用kde主题来设置多平台(linux / windows)Qt4应用程序的样式吗?

是的,如果您构建/复制所有依赖项。

This is not possible. Qt uses every platform's native API to render the widgets, hence platform specific themes cannot be applied on other platforms.

Since themes maybe third-party, it becomes more difficult.

If you're talking about Qt Styles( QStyle ) that are used in traditional C++ KDE themes(non Plasma or ini themes) then yes you can do that to some extent, though you may have to adjust/fix some(or more) things since their mostly written with the KDE theme purpose in mind. One good example would be to fix or ensure the cross-platform compatibility(the theme might use additional platform specific libraries). Then there's also the licensing issue that you definitely have to take into consideration, since most of those themes are under GNU GPL.

If you're talking about Qt Stylesheets , you are out of luck, since currently KDE doesn't support any way of theming using Qt Stylesheets, thus you have no KDE Stylesheet themes to use .

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