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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • GUI: High-DPI
    • None
    • 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. 20211116153051.png
          20211116153051.png
          78 kB
        3. 20211116153008.png
          20211116153008.png
          72 kB
        4. 20211115_160001.avi
          4.21 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            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