Qt windows theming
Show 1 more comment. Active Oldest Votes. I had the same issue after upgrading from Qt5. Jonathan Owens Jonathan Owens 2 2 silver badges 4 4 bronze badges. Thank you very much! Such an easy solution! Thumb up! Add a comment. QApplication::setStyle "fusion" ; From the documentation, the following are supported: "windows" "fusion" "windowsxp" "macintosh" The supported themes depend on your platform, and can be extended with plugins. Adrien Leravat Adrien Leravat 2, 17 17 silver badges 29 29 bronze badges.
The working GUI used the exact same code as the ugly one. And both GUIs appear to look like "windows". If I remember correctly, the left picture you showed is the default old linux style, so applying "windows" style should fix that, by forcing the theme used, instead of letting Qt deduce it.
When Qt is built properly, it can deduce the right theme to use; there is no need to force it to use a Windows them when it's compiled for Windows. That's correct, I'll modify my answer to add that general info. Upvoted your last answer, which nicely solves the problem! Steve Rogers Steve Rogers 21 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. AFAIK, the color of the Qt5 Fusion theme is entirely controlled by the color palette, which in its turn is controlled by the system theme. So on Ubuntu you'll get Orange colors, and blue on Windows So basically all you have to do is to use a tool or the QtProject.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Is the Qt 5 dark Fusion theme available for Windows?
Ask Question. Asked 8 years, 10 months ago. Active 4 years, 1 month ago. Viewed 21k times. Christian Ivicevic Christian Ivicevic 9, 7 7 gold badges 31 31 silver badges 64 64 bronze badges. Add a comment. Active Oldest Votes. Skyrpex Skyrpex 3 3 silver badges 7 7 bronze badges. Documentation contributions included herein are the copyrights of their respective owners.
Qt and respective logos are trademarks of The Qt Company Ltd. All other trademarks are property of their respective owners. Import Statement: import QtQuick. Universal 2. The Universal style in light theme The Universal style in dark theme. Controls 2. Dark Universal. Variable Description Theme Specifies the default Universal theme. The value can be one of the available themes, for example "Dark". Accent Specifies the default Universal accent color.
The value can be any color , but it is recommended to use one of the pre-defined Universal colors , for example "Violet". Foreground Specifies the default Universal foreground color. The value can be any color , or one of the pre-defined Universal colors , for example "Brown".
Background Specifies the default Universal background color. The value can be any color , or one of the pre-defined Universal colors , for example "Steel". Constant Description Universal. Lime A4C Light Light theme default Universal. Dark Dark theme Universal.
0コメント