[Qt-interest] String Concatenation Problem while working with QProcess

Usman Ajmal uzmanajmal at gmail.com
Wed May 27 08:31:23 CEST 2009


Sorry....i got it. Just used the append function of QString.

Sorry for disturbing. :)

On Wed, May 27, 2009 at 11:26 AM, Usman Ajmal <uzmanajmal at gmail.com> wrote:

> 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/1d898cfd/attachment.html 


More information about the Qt-interest-old mailing list