Results 1 to 2 of 2

Thread: QProcess problem in accessing stdout

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QProcess problem in accessing stdout

    how to handle the user input action in our application
    i am using QProcess for starting the process but not getting
    completed because the command need user name and password.
    The code is like this

    QDir::setCurrent("d:\\VSS\\win32");
    sourceControl=new QProcess(this);
    sourceControl->start("ss Get TDS_PR1.xml \"-O&File.txt\"");
    if(sourceControl->state ()==QProcess::NotRunning)
    QMessageBox::warning(this, "Application name here","not running");
    else if(sourceControl->state ()==QProcess::Starting)
    QMessageBox::warning(this, "Application name here","Starting");
    else if(sourceControl->state ()==QProcess::Running)
    QMessageBox::warning(this, "Application name here","Running");

    can anybody help

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QProcess problem in accessing stdout

    You can send data to child process standard input using write() method of QProcess.

Similar Threads

  1. QProcess problem
    By Mystical Groovy in forum Qt Programming
    Replies: 2
    Last Post: 2nd December 2008, 20:07
  2. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  3. Problem with qprocess
    By resal in forum Qt Programming
    Replies: 8
    Last Post: 29th August 2007, 22:13
  4. Quoting problem with QProcess
    By the_bis in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2006, 11:24
  5. problem with qprocess
    By deekayt in forum Qt Programming
    Replies: 2
    Last Post: 13th June 2006, 13:30

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.