I have a method called open function which has the following code
QString strFile
= fdFile.
getOpenFileName(this,
"Select Stream File to Open","",
"Stream File (*.*)");
if (strFile.isEmpty())
return; /***********interesting part****************
//did some file processing
QFileDialog fdFile;
QString strFile = fdFile.getOpenFileName(this,
"Select Stream File to Open","",
"Stream File (*.*)");
if (strFile.isEmpty())
return; /***********interesting part****************
//did some file processing
To copy to clipboard, switch view to plain text mode
when i cancel my open file dialog box, for some reason my app will freeze for a while, when I trace it it will freeze at the return ( the part where i will exit on this method) line
What could be holding my app that it will take some time after exit of this method to respond to my command ( input) .. i am thinking that at the return line of my code this method is trying to cleanup the out of scope stuff, but what makes it freeze for a while is the million dollar question that i've been trying to answer today . since i can't figure it out I want to use my lifeline which is "ask the best forum" so here i am ...
baray98
Bookmarks