Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why QDir open the directory with a name like test.lnk failed!
I have a problem using QDIR , QDir *dir = new QDir("D:\test\test.lnk"), dir points to the root directory D:\ instead of D:\test\test.lnk .Lnk is a directory (rename with.lnk suffix)
Create a new folder and rename it test.lnk , In debug mode, observe infoList , the list is in the root directory.
development environment : Microsoft Windows 10 Build 19041 ,QT 5.7.0
Kent-Dorfman last edited by
don't use suffixes on directory names in windoze...especially the 'lnk' suffix, as lnk is windoze jargon for a symbolic link file.
@famoustang I can reproduce this on Windows 10 with Qt 5.11.1 MinGW.
Did you check the Qt bug tracker? You can file a bug if there is nothing yet for this issue.
@Kent-Dorfman thanks for your advice,but fault-tolerance processing need.
@jsulm thanks for your advice.