also, you forgot to specify type for function
Qt Code:
void mainwindow::process_started() { process->start("./home/i386-qt-rss"); }To copy to clipboard, switch view to plain text mode
also, you forgot to specify type for function
Qt Code:
void mainwindow::process_started() { process->start("./home/i386-qt-rss"); }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Just to add, this has now compiled, however I thought the app the process is linked to would have started and opened up. I can see that there hass been a thread created when I click the pushbutton but nothing appears on screen. Is this normal?
if you need call program in a new process use QProcess::startDetached. in this case you will see a separate window.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
hybrid_snyper (20th October 2009)
So I take it once startDetached is called then the first application is not aware of the second, ie when the launched app has finished and has been cloased?
it depends on how it works.
if you need to know when this app will stopped then you should use QProcess::start and handle signals QProcess::started & QProcess::finished.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks