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

QWidget ::activateWindow() - behavior under windows

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.7.0
    • Fix Version/s: 5.7.0 Alpha
    • Component/s: Documentation
    • Labels:
      None
    • Environment:

      Windows XP

    • Commits:
      28ee76fd0b9ce59291341c8a9937a6c98fcb926d (qtbase/5.7, 25.2.2016, 5.7)

      Description

      In the documentation it says about QWidget ::activateWindow():
      "On Windows, if you are calling this when the application is not currently the active one then it will not make it the active window. It will change the color of the taskbar entry to indicate that the window has changed in some way. This is because Microsoft does not allow an application to interrupt what the user is currently doing in another application."

      One could add to the documentation that there is a workaround to this problem. Namely changing the following registry keys will result in the desired behaviour

      HKEY_CURRENT_USER\Control Panel\Desktop
      ForegroundFlashCount = REG_DWORD 0x00000003
      ForegroundLockTimeout = REG_DWORD 0x00000000

      After changing the registry keys a restart of the computer (or log-off and relog-on of the user) is required to make this workaround work.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-14062
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                kleint Friedemann Kleint
                Reporter:
                mawiesma Martin Wiesmann (closed Nokia identity) (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes