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

QWindowsScreenManager::handleScreenChanges crashes when WindowsTheme is not used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.12.6, 5.15.0
    • QPA: Windows
    • None
    • Windows 10
    • Windows

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes