Results 1 to 7 of 7

Thread: GIT - QProcess

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2016
    Posts
    54
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    7

    Default GIT - QProcess

    Hii Forum,

    I'm using QProcess to execute some cmd GIT

    I tried :
    Qt Code:
    1. process.start("git pull origin master");
    To copy to clipboard, switch view to plain text mode 

    How do I know if the operation is OK or NOT ??

    I can get the response :
    Qt Code:
    1. if(process.waitForFinished())
    2. {
    3. process.waitForReadyRead(1000);
    4. qDebug() << "read output" << process.readAllStandardOutput();
    5. pullOk = true;
    6. }
    To copy to clipboard, switch view to plain text mode 

    I tried to use a boolean pullOK, but I didn't find a methode (QProcess) ...

    I have to know the result of the operation ([B] true [/ B] or [B] false [/ B]) for treatment after

    Regards,
    Last edited by Binary01; 11th August 2016 at 16:20.

Similar Threads

  1. QProcess crashes second QProcess
    By Ion in forum Newbie
    Replies: 1
    Last Post: 23rd September 2014, 21:00
  2. Replies: 1
    Last Post: 3rd June 2013, 13:11
  3. Replies: 0
    Last Post: 23rd March 2013, 19:23
  4. Replies: 0
    Last Post: 26th August 2010, 10:44
  5. QProcess inside QProcess
    By bunjee in forum Qt Programming
    Replies: 7
    Last Post: 4th December 2008, 00:39

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.