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

Artifacts when dragging window to secondary screen (hdpi related)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 5.12.8
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Setup:
      Windows 10
      Main monitor with 100% scalling
      Secondary monitor with 175 scalling

      Run the following program and drag the window multiple times between screens until corruption happens.

      The HDPI attribute is needed, and so is the winId(). Bug is related to native windows somehow.

      See attached corrupted rendering

      #include <QtWidgets>
      
      int main(int a, char **b)
      {
          QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
      
          QApplication app(a, b);
      
          auto tlw = new QWidget();
          auto layout = new QVBoxLayout(tlw);
      
          auto button = new QPushButton(QString("Button 1"));
          layout->addWidget(button);
          button->winId();
      
          tlw->resize(500, 500);
          tlw->show();
      
          return app.exec();
      }
      
      

        Attachments

        1. Artifacts.png
          5 kB
          Sergio Martins
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes