Use the QFileSystemModel class, it has a method
QFile::Permissions QFileSystemModel::permissions ( const QModelIndex & index ) const
Request permissions for the directory where you want to create files.
there are also some tricks about window permissions - look docs - they should be explicitly included in your application and
QFile::ReadOwner QFile::WriteOwner QFile::ExeOwner
matches current user
UPD - there is an easier way - just use
QString dirName=<your dir>; QFileInfo f(dirName); f.permissions ();
source share