Results 1 to 4 of 4

Thread: QProcess start hangs application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QProcess start hangs application

    If you want your application to be responsive while the wget runs then don't call the blocking function QProcess::waitForFinished():
    Warning: Calling this function from the main (GUI) thread might cause your user interface to freeze.
    The system() call would block just the same.

    You can download a file from the network entirely inside your Qt code, so why use an external process at all?

  2. The following user says thank you to ChrisW67 for this useful post:

    hakermania (10th September 2011)

Similar Threads

  1. QProcess::start() failed when application runs from sudo
    By alenyashka in forum Qt Programming
    Replies: 3
    Last Post: 22nd June 2010, 06:35
  2. Replies: 5
    Last Post: 3rd February 2010, 23:50
  3. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  4. QProcess hangs
    By Skizmo in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2007, 10:27
  5. QProcess start automaticaly needed application
    By raphaelf in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 14:11

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.