I was using QThreads in Qt where my need is to launch a command-line executable from within a Qt thread and run the same within the thread's context. I have used the below mentioned code for the same which seems to be running fine. However, I wanted to know if this kind of usage is permitted since we are launching a QProcess from within a QThread.

Qt Code:
  1. void Help_Menu_Thread::run()
  2. {
  3. Insert_Log("INFO::Help file referred by Admin");
  4. QProcess HelpStart;
  5. HelpStart.execute("c:\\windows\\hh.exe LPRS_help.chm");
  6. HelpStart.close();
  7. }
To copy to clipboard, switch view to plain text mode 

Awaiting your response.

Regards,
Sandeep