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

QWidget ::activateWindow() - behavior under windows

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P4: Low
    • 5.7.0 Alpha
    • 4.7.0
    • Documentation
    • None
    • Windows XP

    • 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

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

          Activity

            People

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