Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
-
Acer W700 (Windows 8, 64bit) with Intel HD Graphics 4000 (I’ve tried different versions of the video driver with the same result). Qt 5.0.1 for Windows 32-bit (VS 2010)
-
11e9f1368be986d0e128e8f7b2423d9cc7dd5436
Description
Qt 5.0.1 detects wrong screen resolution on Windows 8. I have 1920x1080 resolution, while Qt reports 1536x864.
The following code was used for testing both Qt 5.0.1 and Qt 4.8.4:
#include <QApplication> #include <QDesktopWidget> #include <QDebug> int main(int argc, char **argv) { QApplication app(argc, argv); QDesktopWidget* d = QApplication::desktop(); qDebug() << "screen count: " << d->screenCount(); qDebug() << "screen number: " << d->screenNumber(); qDebug() << "primary screen: " << d->primaryScreen(); qDebug() << "is virtual dt: " << d->isVirtualDesktop(); qDebug() << "screen geometry: " << d->screenGeometry(); qDebug() << "available geometry:" << d->availableGeometry(); qDebug() << "desktop size: " << d->size(); return 0; }
Qt 5.0.1 reports:
screen count: 1 screen number: 0 primary screen: 0 is virtual dt: false screen geometry: QRect(0,0 1536x864) available geometry: QRect(0,0 1536x826) desktop size: QSize(1536, 864)
Qt 4.8.4 reports:
screen count: 1 screen number: 0 primary screen: 0 is virtual dt: true screen geometry: QRect(0,0 1920x1080) available geometry: QRect(0,0 1920x1032) desktop size: QSize(1920, 1080)
Using Qt 5.0.1 widgets get scaled to the wrong 1536x864 resolution as well (e.g. window of 1536x864 px will fill the entire screen).
Additionally when I use full screen widgets the taskbar does not get hidden by Qt 5.0.1 (works well with 4.8.4) and touch input doesn't get translated properly (I assume these to be side effects of incorrect desktop resolution).
ps: I don't have this issue on my desktop with Windows 7 and nVidia GPU in neither Qt 4.8.4 nor 5.0.1.
Attachments
Issue Links
- relates to
-
QTBUG-37347 Windows function 'SetProcessDPIAware' should not be called from code
- Closed