qt - Starting QProcess from QThread -


i using qthreads in qt need launch command-line executable within qt thread , run same within thread's context.

i have used below mentioned code same seems running fine. however, wanted know if kind of usage permitted since launching qprocess within qthread.

void help_menu_thread::run() {     insert_log("info::help file referred admin");     qprocess helpstart;     helpstart.execute("c:\\windows\\hh.exe lprs_help.chm");     helpstart.close(); } 

awaiting response.

regards,

saurabh g.

it safe use way long has main program doesn't have wait output of qprocess or completion. helpstart process start thread being parent process running independently.but more safe if use helpstart.waitforfinished() before call helpstart.close();


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -