Quote Originally Posted by deekayt View Post
Canyou suggest a better method to do this task.
Use QProcess::startDetached(). This should work:
Qt Code:
  1. QProcess::startDetached( "start", QStringList() << "something.jpg" );
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by deekayt View Post
Secondly I need to create , open , write , execute and close the file very often in my program on the click of buttons.
Use QProcess.

Please, don't ask unrelated questions in one thread --- open new thread for new issues. Also, please, use [ code ] tags for code snippets and [ quote ] tags only for quotes.