Results 1 to 4 of 4

Thread: Qprocess not working

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Qprocess not working

    What does QProcess::startDetached() return? Maybe you should create QCoreApplication instance before using QProcess?

  2. #2
    Join Date
    Jan 2007
    Posts
    91
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    21

    Question Re: Qprocess not working

    I'm not sure whether this is related or not, but when I press F10 within the MSVC developer studio, it comes up with a message "This application has failed to start because QtGuid4.dll was not found. Re-installing the application may fix this problem."

    But when I press F5 and run it to a breakpoint, it works.

    - Bc

  3. #3
    Join Date
    Jan 2007
    Posts
    91
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    21

    Talking Re: Qprocess not working

    I figured out my own problem. In case someone else looks up this thread, you can't set a path in the input variable. It can only be a file NAME! No path. You must set the SetWorkingDirectory to the location of the executable and then call the start() with just the file name.

    This is more of a Linux-ism.

Similar Threads

  1. QProcess not working in some cases
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2006, 10:58
  2. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 14:30
  3. QProcess / system call not working under linux. Why?
    By johnny_sparx in forum Qt Programming
    Replies: 12
    Last Post: 11th March 2006, 01:32
  4. Qprocess
    By ioannisb in forum Qt Programming
    Replies: 5
    Last Post: 13th February 2006, 09:38
  5. QProcess in a QThread
    By chombium in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 16:52

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
  •  
Qt is a trademark of The Qt Company.