[Solved] Qt Apps look ugly in Windows 8 Consumer Preview



  • I opened SMPlayer; the UI looked Classic-ish. Then, I also checked Qt Creator, and VLC - same situation. I have attached a screentshot. Please check it, and see if anyone faces the same problem.
    Let me remind you that all other apps look just perfectly fine.
    I hope it's just a problem with my setup. Anyways, please shed some light on this.!http://i.imgur.com/dKvOC.jpg(Ugly UI of Qt Apps)!



  • You mean the styles? (QPlastique, etc) I've tryed some applications with them and they worked fine. Try running with compatibility mode. Also, did this happen on Developer 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.



  • What happens if you specify the Vista style explicitly?



  • You mean setting the Windows Aero style explicitly in the Personalization option? I have already done that, without any result.

    [quote author="Andre" date="1330847330"]What happens if you specify the Vista style explicitly?[/quote]



  • 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]



  • Has anyone got solution to this?



  • As windows 8 is not officially out, I assume Qt does not support it officially for styles etc.
    Till Qt does not officially supports it, you have to live with work arounds.



  • 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]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.