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

Qt 5.0.1 detects wrong primary screen properties on Windows 8 (Acer W700 with Intel HD Graphics 4000).



    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.2
    • 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


      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.


        1. monitorinfo.tar
          10 kB
        2. qtbug30063.tar
          10 kB

        Issue Links

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



              kleint Friedemann Kleint
              maxus Maxim Makhinya
              1 Vote for this issue
              3 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes