View Full Version : a program to start another program.
zakis
29th November 2009, 18:48
Hello.
I try from my program to start another program....
with a function to call another program.
can be done?
only for linux, thanks
wysota
29th November 2009, 19:48
Use QProcess.
zakis
15th December 2009, 20:12
hi guys..
i use this code to play music with VLC
QString prog = "vlc";
QStringList arguments;
arguments<< "play" << "/home/zakis/dokimi/sound/./ll.pls";
QProcess* process = new QProcess(this);
process->start(prog , arguments);
process->waitForFinished();
process->close();
how i close the vlc to continue my app?
wysota
15th December 2009, 21:51
You don't. You can kill it of course, if you want but VLC is probably a quite bad way of playing music from within your application. Phonon would be much better (which is what VLC is probably using too).
zakis
17th December 2009, 19:25
thanks again ... :D
I read about the Phonon library but it's big for my job
Finally install NAS and use the QSound
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.