Why QDir::entryList doesn't return links?
-
I'm using Qt 5.15.2. Trying to get all the files and dirs in the directory, but I can't get no one link.
The code:
#include <QDebug> #include <QDir> int main(int argc, char *argv[]) { qDebug() << QDir("D:/test").entryList(); return 0; }It doesn't return files with extension *.lnk which are in the dir. I'm working on Windows. What is the right way to get them?
-
I'm using Qt 5.15.2. Trying to get all the files and dirs in the directory, but I can't get no one link.
The code:
#include <QDebug> #include <QDir> int main(int argc, char *argv[]) { qDebug() << QDir("D:/test").entryList(); return 0; }It doesn't return files with extension *.lnk which are in the dir. I'm working on Windows. What is the right way to get them?
@AlexNevskiy
try with filter QDir::SystemQDir::System 0x200
List system files (on Unix, FIFOs, sockets and device files are included; on Windows, .lnk files are included) -
@AlexNevskiy
try with filter QDir::SystemQDir::System 0x200
List system files (on Unix, FIFOs, sockets and device files are included; on Windows, .lnk files are included)@mpergand Thank you. It works!