[Qt-interest] File permissions under Windows Vista

livubuntu at lalescu.ro livubuntu at lalescu.ro
Thu Jun 18 06:56:25 CEST 2009


Hello!

I have this problem: I need the user to select a directory and I write  
there the output files. I check if this directory is writable by:

QFile test(directory+"/test.tmp");
if(!test.open(QIODevice::ReadWrite)
       ->unpermitted directory;

Under GNU/Linux, it works OK. Under Windows Vista, I can select the  
C:\Windows directory without reporting that it is not writable. My  
program then works as expected, but the files do not show up.

What can I do?





More information about the Qt-interest-old mailing list