Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.12.8
-
None
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(); }