qt - QFileInfo::exists() for a shared-drive file path -


Question from a newcomer to Qt: When I supply the existence () method of a QFileInfo object with a shared-drive file path,

"post-text" itemprop = "text" >

, it always goes wrong, even with a backslash (i.e. \\ 10.1.2.34.56 \ dir1) with me to avoid every backslash. And of course, the directory exists :) Can there be any other issue at work, such as lack of permission for the directory in question? Thank you in advance for any light on this issue ...

It looks like this is correct Works with XP (with QT 4.7.3) either with double backslash or single slash ('// IP / Share / Filepath').

Try to get the file URL from QFileDialog :: getOpenFileName . As it uses an original dialogue, if necessary it should ask for its login / password.
If QFileInfo can detect that the file exists, then you should connect to the program to access the original API () network to connect.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -