[Solved] Qt Apps look ugly in Windows 8 Consumer Preview
-
I am talking about the controls - buttons, drop down, checkboxes, etc. They all look old Win98 style: classic-ish. I haven't applied any theme - it's the default UI. That certainly should look normal, which is the case in other applications. Here is an "a comparison between default look of Notepad++(Non-Qt) and Clementine(Qt)":http://i.imgur.com/SL8V6.jpg
And I am not aware of Developer Preview. I had installed it only for a brief time, during which, I hadn't install any Qt app.
-
I was having the same problem. I tried setting the QWindowsVistaStyle explicitly first, but it made no difference.
Then I tried setting the QWindowsXPStyle style like this: QApplication::setStyle(new QWindowsXPStyle); and it seemed to work.
The look now appears to be that of a Windows 7 or 8 program, not Windows XP. I don't know why.
-
Ah. The harder I try to forget XP, the more it comes and hit me!
Well. That could work for the applications that we design. What about the already-existing apps? I surely don't want to see those boring controls, now that I am used to KDE and Windows 7 interfaces.
I hope that someone can find some solution to this.[quote author="Alexei" date="1330928526"]I was having the same problem. I tried setting the QWindowsVistaStyle explicitly first, but it made no difference.
Then I tried setting the QWindowsXPStyle style like this: QApplication::setStyle(new QWindowsXPStyle); and it seemed to work.
The look now appears to be that of a Windows 7 or 8 program, not Windows XP. I don't know why.[/quote]
-
Yes. Ok. I got that point of view after reading several other posts related to Windows 8 Metro app development. It's fair enough that Qt can't support Windows 8 right away, Windows8 being just in a beta stage.
I am eagerly waiting for the official support now. Meanwhile, I will reinstall Windows 7 as Win8 hasn't been more useful to me anyways. -
The problem was that Qt did not check for Windows version correctly (hence the checks for >= Windows Vista or >= Windows XP failed). This has been fixed in Qt 4.8 by my merge request https://qt.gitorious.org/qt/qt/commit/1ef309e964753105e14a8c223a1b59c0cbd9369b
-
Wow. I am glad that I got a solution even after such a long time! I had myself forgotten this post.
Anyways, while I am already back on Windows 7, I am sure someone else will find this solution helpful.[quote author="miniak" date="1345398906"]The problem was that Qt did not check for Windows version correctly (hence the checks for >= Windows Vista or >= Windows XP failed). This has been fixed in Qt 4.8 by my merge request https://qt.gitorious.org/qt/qt/commit/1ef309e964753105e14a8c223a1b59c0cbd9369b[/quote]