Results 1 to 6 of 6

Thread: Invoking another application

  1. #1
    Join Date
    Oct 2011
    Posts
    14
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Invoking another application

    I am creating an application which needs to invoke a different second application. I need that this invoked application does not die when the first application is closed. Is there a way ?

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

    Default Re: Invoking another application

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    Qting (5th February 2012)

  4. #3
    Join Date
    Oct 2011
    Posts
    14
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Invoking another application

    Quote Originally Posted by wysota View Post
    @wysota Thanks for the reply. I am trying to control a console application from a GUI application. Seems QProcess::StartDetached() would start the application but QProcess::Terminate() is causing Panic in the controlling application. Is there any way to close the console application from the GUI application ?

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

    Default Re: Invoking another application

    startDetached() is a static call, what do you want to call terminate() on?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Oct 2011
    Posts
    14
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Invoking another application

    I am sorry, I got confused..

    The whole process that I want is:
    1. User starts the GUI app
    2. Through the GUI app, he starts the console app
    3. The GUI app then may be closed
    4. To close the console app, User starts the GUI app which would provide the interface
    So, the startdetached() call could start the console app, I need some way to close the console app through the GUI app.

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

    Default Re: Invoking another application

    No, you need a way to communicate with the console app. You can do that with some IPC mechanism.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. The following user says thank you to wysota for this useful post:

    Qting (6th February 2012)

Similar Threads

  1. Replies: 3
    Last Post: 14th August 2011, 20:06
  2. invoking Matlb through QT
    By sal in forum Newbie
    Replies: 2
    Last Post: 22nd May 2010, 22:43
  3. Invoking New Dialog
    By kb1lqc in forum Qt Programming
    Replies: 8
    Last Post: 5th November 2009, 15:23
  4. Invoking QT Docking widget from MFC MDI application
    By Vikram in forum Qt Programming
    Replies: 1
    Last Post: 7th July 2007, 18:26
  5. Invoking a browser...???
    By deepusrp in forum Newbie
    Replies: 4
    Last Post: 12th June 2007, 17:32

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.