[Qt-interest] String Concatenation Problem while working with QProcess
Usman Ajmal
uzmanajmal at gmail.com
Wed May 27 08:26:23 CEST 2009
I have a problem in concatenating strings. I want to run following command
with the help of QProcess
dd if=/dev/mem of=[user-defined-path-in-a-lineEdit]
I want the output file to be taken from a lineEdit named 'path_lineEdit'.
Following program din work because the text in the lineEdit is not
concatenating with the program.
QObject *parent;
QString program = "dd if=/dev/mem of=" path_lineEdit->text( );
QProcess *myProcess= new QProcess(parent);
myProcess->start(program);
How do i concatenate it?
Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090527/b8230104/attachment.html
More information about the Qt-interest-old
mailing list