Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98364

Under the high DPI, the background color of the window disappears

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: GUI: High-DPI
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Set these three conditions. As long as they are setted, the background color setted by QSS will not be visible(see the video attached)

      1. setAttribute(Qt::WA_TranslucentBackground, true)
      2. Zoom to 150
      3. right click the exe's attribute to modify the high DPI setting of compatibility to system enhancement

        Attachments

        1. TestQt.rar
          4 kB
        2. 20211116153008.png
          20211116153008.png
          72 kB
        3. 20211115_160001.avi
          4.21 MB
        4. 20211116153051.png
          20211116153051.png
          78 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            fanruijie Alan Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes