×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Question How to Exit Application Programattically ?

    I want to quit my application programatically. What to do for that ? My app is based on Qt 4.6 for Symbian.

  2. #2
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,357

    Re: How to Exit Application Programattically ?

    call the SLOT close(). this will exit out the app

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    31

    Re: How to Exit Application Programattically ?

    QTimer::singleShot(0, qApp, SLOT(quit()));

  4. #4
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: How to Exit Application Programattically ?

    Edited - made a wrong post

  5. #5
    Registered User
    Join Date
    Mar 2009
    Location
    Chennai, India
    Posts
    49

    Re: How to Exit Application Programattically ?

    This works fine for me..

    Code:
    QApplication::exit();

  6. #6
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to Exit Application Programattically ?

    Or:

    x = 1/0;

  7. #7
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Re: How to Exit Application Programattically ?

    Quote Originally Posted by danhicksbyron View Post
    Or:

    x = 1/0;
    Is this right way ?

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to Exit Application Programattically ?

    Quote Originally Posted by narendar_discover View Post
    Is this right way ?
    no it is not just use #3 way where you get the application pointer then quit from that.

  9. #9
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to Exit Application Programattically ?

    It's like an aircraft -- any landing you can walk away from is a good one.

Similar Threads

  1. Replies: 2
    Last Post: 2011-03-05, 10:49
  2. Replies: 3
    Last Post: 2010-02-05, 10:04
  3. How to do exit from application?
    By Yavorsky_Yury in forum Symbian
    Replies: 10
    Last Post: 2008-06-04, 16:20
  4. How to exit application from Container class
    By thilsen_06 in forum Symbian
    Replies: 4
    Last Post: 2007-02-16, 13:33
  5. How to exit Application in Full Canvas without Command
    By gandalfin in forum Mobile Java General
    Replies: 4
    Last Post: 2005-06-02, 07:42

Posting Permissions

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