×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    45

    How to receive application foreground event

    Hello,

    Is it possible to handle application foreground events in QT same as S60 AppUi::HandleForegroundEventL().

    I tried with QEvent::ApplicationActivate and WindowActivate events. But these events are generated at various scenarios like when it gains focus after closing a messagebox.

    I want a event which informs when application comes to foreground.

    Thanks

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    25

    Re: How to receive application foreground event

    Try using signal QApplication::focusChanged(). Let me know if it doesn't help.
    Regards,
    Vittal

    Linkedin: http://in.linkedin.com/in/vittalbabu

  3. #3
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to receive application foreground event

    Quote Originally Posted by kokilakr View Post
    Hello,

    Is it possible to handle application foreground events in QT same as S60 AppUi::HandleForegroundEventL().

    I tried with QEvent::ApplicationActivate and WindowActivate events. But these events are generated at various scenarios like when it gains focus after closing a messagebox.

    I want a event which informs when application comes to foreground.

    Thanks
    Derive one class from QApplication and install event filter in that class, After that it gives you foreground event.

    Cheers,
    RaHuL

Similar Threads

  1. Catch event when application is opened on foreground
    By WiT8litZ in forum Mobile Java General
    Replies: 4
    Last Post: 2009-10-30, 11:36
  2. Background / Foreground event
    By heuven in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-12-16, 15:04
  3. Application Background/Foreground event
    By NevePankaj in forum Symbian
    Replies: 3
    Last Post: 2008-09-05, 09:42
  4. Replies: 2
    Last Post: 2008-02-02, 17:10
  5. How to send a key event to foreground application?
    By wanglele76 in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2007-09-20, 14:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×