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

Qt reports same color depth on virtual-desktop systems even if screens have different depth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.1.0
    • Core: Other
    • None

      On a dual-head Windows system, configure the first screen to 32bpp and the second screen to 16bpp. The following code prints 32 both times:

      qDebug() << app.desktop()>screen(0)>depth();
      qDebug() << app.desktop()>screen(1)>depth();

      Both times GetDeviceCaps(BITSPIXEL) is called with the global device context (i.e. qt_win_display_dc), and hence returns the same value.

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

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes