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

Artifacts when dragging window to secondary screen (hdpi related)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.12.8
    • QPA: Windows
    • None
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            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