PDA

View Full Version : the problem of getOpenFileName



AD
29th July 2008, 17:55
It is very interesting problem! The functions getOpenFileName/getOpenFileNames() builds tree of the directories. This functions find all pathes which include folder "My Network Places". One of our servers broke and there procedures didn't find all pathes in network.
How can I cut of this finding for "My Network Places"?

jpn
29th July 2008, 19:07
"My Network Places" is listed by the native Windows file dialog. Qt just uses that native dialog provided by Windows.

AD
30th July 2008, 06:04
How can I resolve this problem?

AD
30th July 2008, 10:56
Help please!

jpn
30th July 2008, 11:59
QFileDialog::getOpenFileName() uses WinAPI to show the native file dialog. I guess WinAPI has the possibility to hide "My Network Places" from the file dialog. Take a look at QFileDialog sources for implementation hints and try doing it yourself using WinAPI directly.