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. [Closed] Qt5: Windows 7 theme change causes styling glitches
Qt 6.11 is out! See what's new in the release blog

[Closed] Qt5: Windows 7 theme change causes styling glitches

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.6k 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.
  • Y Offline
    Y Offline
    YuriQ
    wrote on last edited by
    #1

    Qt version = 5.1.1
    OS version = Windows 7 32bit

    Hello.
    To reproduce this bug just switch Windows theme from "aero" to "high contrast #2" and back. It looks like Qt drawing engine doesn't update some styling parameters so you will see green text on black background on "aero"-styled windows.
    How can I fix it?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Sounds like a bug.
      Maybe you could "reapply the style":http://qt-project.org/doc/qt-5.0/qtwidgets/qapplication.html#setStyle when your app receives "WM_DWMCOMPOSITIONCHANGED ":http://msdn.microsoft.com/en-us/library/windows/desktop/dd388199.aspx message.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        YuriQ
        wrote on last edited by
        #3

        It doesn't work, unfortunately. So I made a bug-report: "QTBUG-34170":https://bugreports.qt-project.org/browse/QTBUG-34170

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          YuriQ
          wrote on last edited by
          #4

          Success. Waiting for Qt 5.2.

          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