Results 1 to 2 of 2

Thread: Is there substitute method for exec()?

  1. #1
    Join Date
    Mar 2015
    Posts
    105
    Thanks
    50

    Default Is there substitute method for exec()?

    Hello!

    I have a program where if i click in a button, this button launches another program. To do that in Linux and using c I can use the exec family of functions. I would like to know if exists a Qt method that does the same thing in Windows. I'm using Windows 7 - 64bit and i want to do that using c++(don't know if exists a substitute for exec() in c++ too).
    Last edited by robgeek; 12th January 2016 at 21:44.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Is there substitute method for exec()?

    There is QProcess, which does this in a platform-independent way. If your program takes command line arguments, be sure to read carefully how to pass these to QProcess so that your program will actually run.

Similar Threads

  1. Qt exec bug
    By waiter in forum Newbie
    Replies: 1
    Last Post: 7th April 2013, 08:17
  2. Replies: 3
    Last Post: 19th June 2012, 09:06
  3. Calling a method from a non-member method
    By AndresBarbaRoja in forum Newbie
    Replies: 5
    Last Post: 19th March 2011, 10:38
  4. Replies: 1
    Last Post: 25th November 2010, 11:37
  5. app.exec() never returns?
    By stealth86 in forum Qt Programming
    Replies: 3
    Last Post: 17th July 2007, 18:41

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.