Results 1 to 3 of 3

Thread: Write to QProcess from stdin

  1. #1
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Write to QProcess from stdin

    Hi,

    I am trying to find a way to write to QProcess from stdin.
    Basically following is what I have in Dot Net that I want to do using Qt.

    private static Process _serverProcess;
    _serverProcess.StandardInput.WriteLine(SomeString) ;


    I would really appreciate any guidance with this.


    regards,
    Raj

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

    Default Re: Write to QProcess from stdin

    Have you read the QProcess docs? What have you tried?

  3. #3
    Join Date
    Aug 2010
    Posts
    36
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Write to QProcess from stdin

    My bad ... was in hurry ...didnt realize that QProcess inherits QIODevice and has read() write() available.

Similar Threads

  1. Replies: 7
    Last Post: 13th September 2011, 13:15
  2. QProcess and stdin
    By ithinkso in forum Newbie
    Replies: 7
    Last Post: 23rd May 2011, 06:21
  3. QProcess plink.exe - how to process->write
    By Phalanx in forum Newbie
    Replies: 1
    Last Post: 25th February 2011, 09:40
  4. Replies: 0
    Last Post: 2nd August 2010, 09:17
  5. recieving QProcess::write data
    By node_ex in forum Qt Programming
    Replies: 3
    Last Post: 28th July 2008, 12:18

Tags for this Thread

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.