Results 1 to 3 of 3

Thread: ALT+TAB & changeEvent

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default ALT+TAB & changeEvent

    When I click on the minimize button of the application window, changeEvent is called. When I press ALT+TAB to bring the application window in front, the changeEvent is not called.

    What event is called when I press ALT+TAB to get my application back into focus.

    Is it focusInEvent ? I tried even this but there is another widget that gets the focus when the window is shown.

    Can someone please help me with this?

    Thanks a lot.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: ALT+TAB & changeEvent

    There might be no event for that at all (well, not exactly, I guess QEvent::Show might be sent). The window manager just reveals the window. FocusIn might be sent too, but only as a side effect of "activating" the window.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: ALT+TAB & changeEvent

    What about QEvent::WindowActivate?
    J-P Nurmi

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.