On domingo, 1 de julho de 2012 21.33.07, Phil wrote:
> On 01/07/12 21:10, Thiago Macieira wrote:
> > On domingo, 1 de julho de 2012 19.10.51, Phil wrote:
> >> myProcess.startDetached("ls");
> >
> > You started detached. You don't get the output of a detached execution.
> > You
> > need to use start() to communicate with a process.
>
> Thanks Thiago for your reply.
>
> I had also tried start() but the output still goes to the console. Is it
> possible to have the directory list inserted into a string or string list?
Please show us the code you used when you used start().
By default, the stdout and stderr of a program launched from start() goes to
the QProcess pipes and you can read it with the regular QIODevice and QProcess
read functions.
PS: you don't need ls to list a directory.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
