×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Question Hide application in background

    Hi,

    i am creating a phone application using Qt 4.6.3, and i want to create a qbutton that hide my application in background ( while it is running )
    i have searched the wiki and i didn't find any solution for my problem.
    Can anyone help ???

    Best Regards.

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Hide application in background

    QWidget::hide()

  3. #3
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: Hide application in background

    Quote Originally Posted by divanov View Post
    QWidget::hide()
    HI,
    Thanks for ur reply,
    I did that, but it hide my widgets only, the title window and my softkeys is still appearing, and i cannot reaccess the application again because the widget is always in a hiden mode.
    is there any other way to do it ?

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Hide application in background

    You should hide the top-most window.

  5. #5
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: Hide application in background

    Quote Originally Posted by divanov View Post
    You should hide the top-most window.
    It doesn't work.
    the QMainWindow is my top-most window. i hide it but it doesn't work, the same below problem occurs.
    i find something don't know if it will help me, i am writing the following code :
    TApaTask task(iEikonEnv->WsSession( ));
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();

  6. #6
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: Hide application in background

    Quote Originally Posted by divanov View Post
    You should hide the top-most window.
    It doesn't work.
    the QMainWindow is my top-most window. i hide it but it doesn't work, the same below problem occurs.
    i find something don't know if it will help me, i am writing the following code :
    TApaTask task(iEikonEnv->WsSession( ));
    task.SetWgId(CEikonEnv::Static()->RootWin().Identifier());
    task.SendToBackground();
    it gaves me the following error : " icoeenv is not declared "
    Note that i have incude <eikenv.h>
    Any idea if what i'm writing will help me ?

  7. #7
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Hide application in background

    Did you include eikdef.h?

  8. #8
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    89

    Re: Hide application in background

    Quote Originally Posted by divanov View Post
    Did you include eikdef.h?
    yes, i have include many .h at the same time, like :
    #include<e32base.h>
    #include <w32std.h>
    #include<apgwgnam.h>
    # include <coedef.h>
    # include <coecntrl.h> // CCoeControl
    # include <coemain.h>
    #include<iconv.h>
    #include<eikenv.h>
    #include<eikapp.h>
    #include<eikappui.h>
    #include<aknappui.h>
    #include<aknenv.h>
    #include<coemain.h>
    #include<eikdef.h>

    and the same error occured.

Similar Threads

  1. How to hide J2ME application in background
    By gittu in forum Mobile Java General
    Replies: 31
    Last Post: 2013-03-19, 13:14
  2. Replies: 11
    Last Post: 2010-01-26, 19:00
  3. Run Application in background and hide from toolbar
    By Abhishek_karmakar in forum Symbian
    Replies: 3
    Last Post: 2008-12-31, 10:09
  4. Replies: 3
    Last Post: 2005-11-24, 17:00
  5. hide call dialog box while the app in the background
    By B.H.M in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-11-22, 05:26

Posting Permissions

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