Hi,
No that's not it because I don't specify the path myself, I only use the currentPath.
Here is a little example of the problem. It tries to find all the xml files from the directory where it is started from. It works fine on hard disk drive like C: , but not from networked drives.
int main(int argc, char** argv)
{
QApplication a(argc, argv);}
QDir dir;
QStringList xml_filters;
xml_filters << "*.xml";
QStringList xml_files = dir.entryList(xml_filters, QDir::Files | QDir::Readable);
if (xml_files.count() == 0) {
QMessageBox::critical(0, "Error", "Cannot find any xml file",}
QMessageBox::Ok, QMessageBox::NoButton);
return 1;
else {
QMessageBox::information(0, "Ok", QString("Found %1 xml files.").arg(xml_files.count()),}
QMessageBox::Ok, QMessageBox::NoButton);
return 0;
Is this a bug? Am I missing something?
Yvon




Reply With Quote
Bookmarks