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

Windows Style doesn't work on XP and eariler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.2
    • GUI: Look'n'Feel
    • None
    • 01140c6c47ab073ffd35f4534f2222dd38f29127

    Description

      in qwindowsstyle.cpp there is a code
      NONCLIENTMETRICS ncm;
      ncm.cbSize = sizeof(NONCLIENTMETRICS);
      if (SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0))
      ret = qMax(ncm.iScrollHeight, ncm.iScrollWidth);
      it doesn't work on Windows XP, because the QT code was compiled with WINVER=0x0600.
      I suggest use GetSystemMetrics(SM_CYHSCROLL) and SM_CYVSCROLL instead.

      Attachments

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

        Activity

          People

            pullatti Prasanth Ullattil
            kan Anatoly Kupriyanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes