[Qt-interest] Error encountered while using void setStandardOutputProcess ( QProcess * destination )
Usman Ajmal
uzmanajmal at gmail.com
Tue Jul 21 14:59:17 CEST 2009
Hi,
I am getting following error
MainWindow.cpp:85: error: no matching function for call to
‘QProcess::setStandardOutputProcess(QProcess&)’
/usr/include/QtCore/qprocess.h:113: note: candidates are: void
QProcess::setStandardOutputProcess(QProcess*)
make: *** [MainWindow.o] Error 1
for the following line of codes...Any idea why can't i access
setStandardOutputProcess
QString command1 = "dd if=/dev/mem";
QString command2 = "netcat ";
command2.append(lineEdit_ipAddr->text()); //This line edit contain ip
address to which i am sending the image of memory taken with the help of dd
command2.append(" 9001");
QProcess process1;
QProcess process2;
process1.setStandardOutputProcess(process2);
QCoreApplication::processEvents();
process1.start(command1);
process2.start(command2);
Please tell me what am i missing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090721/e0301252/attachment.html
More information about the Qt-interest-old
mailing list