Results 1 to 3 of 3

Thread: How to restart an application?

  1. #1
    Join Date
    Apr 2007
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to restart an application?

    My application has an problem I don't know how to solve, so I decided whenever the problem occurs, restart the application.

    I know it's not the best way, but it's the only way I can take for now.

    Anyway, I have new problem.

    Like the title, I don't know how to restart an application.

    I use Qt 4.3.0 open source edition for win32.

  2. #2
    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: How to restart an application?

    I warmly encourage you to try to solve the problem in different manner than restarting the application. However, if you insist, use QProcess::startDetached() to launch a new process and then just quit the current one.
    J-P Nurmi

  3. #3
    Join Date
    Apr 2007
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to restart an application?

    The problem's solved.

    Thank you very much!

Similar Threads

  1. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 19:37
  2. Application deployment problem
    By shapirlex in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 13th April 2007, 01:11
  3. Replies: 3
    Last Post: 8th December 2006, 19:51
  4. Gnome makes application crash
    By regix in forum Qt Programming
    Replies: 35
    Last Post: 18th August 2006, 20:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.