问题
I use QDir::exists
to check directories. However, when the checked directory name (string) points to mapped network directory which is not available, then the function takes pretty long (up to 10secs and longer) to return.
How could I realize a shorter timeout? Or is there anything better to check?
来源:https://stackoverflow.com/questions/27511809/qdirexists-with-mapped-remote-directory