qDebug()<< QFileInfo::exists("C:/Users/chenz/Desktop/Docker Desktop.lnk");
qDebug()<< QFileInfo::exists("C:/Users/chenz/Desktop/Clash Verge.lnk");
QFileInfo p{"C:/Users/chenz/Desktop/Docker Desktop.lnk"};
qDebug()<< p.exists();
the files do exist in the place.
but all of them print false
I’ve find it’s due to the spaces in the path string.
if I test it with a new real path without spaces in the path string, it prints true
.
so how to deal with the path with spaces?
test on : windows 10, Qt 5.15.2 MSVC2019 32bit