Hi!
When I try to open a .dwg or a .dxf file with Lx-viewer, I got the following warning message :
" you do not have read permission for this file".
The pb is that I am admin of my computer, owner of the file, and I checked on the Properties/Security menu of the file, and I have indeed all the right on it.
Any idea of what happens?
Thank you.
Cecile.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not sure exactly what the problem as I did not do the windows port. I think the section of code below is what is being triggered.
// Check to make sure we have permission to read the file
if (!fi.isReadable())
{
DisplayMessage(NO_READ_PERMISSION);
db->printMessage(QFileDialog::tr("Warning: %1 was not read - read permission not granted").arg(openname));
return -1;
}
fi is QFileInfo object (defined earlier in the program) that points to the file you are trying to open. Basically QT is reporting that you do not have read permission for the file. I don't really know why you can't read the file, but it seems to be some problem between QT and Windows.
Andyu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
When I try to open a .dwg or a .dxf file with Lx-viewer, I got the following warning message :
" you do not have read permission for this file".
The pb is that I am admin of my computer, owner of the file, and I checked on the Properties/Security menu of the file, and I have indeed all the right on it.
Any idea of what happens?
Thank you.
Cecile.
Cecile,
I am not sure exactly what the problem as I did not do the windows port. I think the section of code below is what is being triggered.
// Check to make sure we have permission to read the file
if (!fi.isReadable())
{
DisplayMessage(NO_READ_PERMISSION);
db->printMessage(QFileDialog::tr("Warning: %1 was not read - read permission not granted").arg(openname));
return -1;
}
fi is QFileInfo object (defined earlier in the program) that points to the file you are trying to open. Basically QT is reporting that you do not have read permission for the file. I don't really know why you can't read the file, but it seems to be some problem between QT and Windows.
Andyu