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

QWindowsScreenManager::handleScreenChanges crashes when WindowsTheme is not used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.12.6, 5.15.0
    • QPA: Windows
    • None
    • Windows 10
    • 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

              kleint Friedemann Kleint
              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