Launching application using cmd through Qt
-
hello,
1.I want to launch cmd.exe->write a command line->run it
Can I do it using Qt? How?
I know that in order to launch cmd.exe I can do this:QProcess::startDetached("cmd.exe");
but it only opens the cmd and is set to the project's directory(I would like to set it to a specific directory).
2. I posted here before about streaming from camera into the app and still unanswered:
https://forum.qt.io/topic/54191/video-stream-from-raspberry-pi
if anyone knows how to proceed that would help a lot..thanks
-
@Omri You can set working directory for
QProcess
for that purpose using setWorkingDirectory.