QCoder
QCoder

Reputation: 79

QProcess STDIN with show console

I want to create a process under QProcess with console show and acccess STDIN and STDOUT streams.

my code:

QProcess *p1 = new QProcess(this);
p1->start("cmd.exe");

if I want to show console I must use startDeatached() function, but by using this, I lost my STDIN/OUT access in my program. if I want to have access these, I dont have my console show!!!??? help me tanx.

Upvotes: 1

Views: 396

Answers (1)

QCoder
QCoder

Reputation: 79

after more investigations, I did not find my exact answer. But I did a quick trick (kalak rashti) for this problem. I used a QTextEdit custom class to simulate some thing behaves like console. frome this link: https://code.google.com/p/qterminalwidget/source/browse/trunk/ with some changes for my purpose.

Upvotes: 1

Related Questions