Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Qt Apps look ugly in Windows 8 Consumer Preview
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
12 Posts 6 Posters 10.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ghost
    wrote on last edited by
    #1

    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)!

    Bhoot

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Forgive
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Ghost
        wrote on last edited by
        #3

        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.

        Bhoot

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          What happens if you specify the Vista style explicitly?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Ghost
            wrote on last edited by
            #5

            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]

            Bhoot

            1 Reply Last reply
            0
            • A Offline
              A Offline
              alvinru
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Ghost
                wrote on last edited by
                #7

                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]

                Bhoot

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  Ghost
                  wrote on last edited by
                  #8

                  Has anyone got solution to this?

                  Bhoot

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #9

                    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.

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      Ghost
                      wrote on last edited by
                      #10

                      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.

                      Bhoot

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        miniak
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          Ghost
                          wrote on last edited by
                          #12

                          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]

                          Bhoot

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved