Results 1 to 2 of 2

Thread: Regarding QProcess-Readstdout

  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Regarding QProcess-Readstdout

    Hi to all
    Is it necessary to delete QProcess objects which are created using new operator.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Regarding QProcess-Readstdout

    How is this related to ReadStdout ?
    If it has a parent, then it'll be deleted automatically when parent object is deleted (as its derived from QObject).
    If not, then you must delete it, if you don't want to have a memory leak. Process managed by QProcess object may be finished, but still you have memory associated with the QProcess object itself.

Similar Threads

  1. Regarding QProcess-Readstdout
    By SYR in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2011, 08:24
  2. Replies: 0
    Last Post: 26th August 2010, 10:44
  3. QProcess readStdOut index
    By user_mail07 in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2008, 19:37
  4. readStdout ( plz help needed urgently)
    By shrikarcse in forum Newbie
    Replies: 1
    Last Post: 3rd April 2006, 13:04
  5. speed up qprocess readstdout
    By kooshball in forum Qt Programming
    Replies: 1
    Last Post: 31st January 2006, 09:42

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.