QDir::exists with mapped remote directory

2019-08-15 09:24发布

问题:

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?

标签: c++ qt5.3 qdir