1

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?

Horst Walter
  • 13,663
  • 32
  • 126
  • 228
  • 1
    I don't know if there's anything that can be done at the Qt level; the OS is presenting the directory as if it were a mounted hard drive, but it can't force the "hard drive" to respond in a timely manner. You could move the I/O calls into their own separate thread, so that at least the GUI would not be frozen up during the timeout period. – Jeremy Friesner Dec 16 '14 at 22:32

0 Answers0