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

QWindowsScreenManager::handleScreenChanges crashes when WindowsTheme is not used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.6, 5.15.0
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows

      Description

      When not using WindowsTheme, but a custom theme, QWindowsScreenManager::handleScreenChanges() crashes when WM_SETTINGCHANGE is received (e.g. when the taskbar is set to auto-hide off/on).

      This is because QWindowsTheme::instance()->refreshFonts() is called without checking whether the instance is valid.

      I believe it should be checked for NULL like it is on two places in QWindowsContext::windowsProc.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              jan.patera Jan Patera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes