Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.4.1
-
None
-
win7 x64, QT5.4.1 MINGW
Description
I copy these code from: http://doc.qt.io/qt-5/qfileinfo.html
#ifdef Q_OS_WIN
QFileInfo info1("C:
Documents and Settings\\Bob
untabify.lnk");
info1.isSymLink();
info1.absoluteFilePath();
info1.size(); // it returns 63942, not 743, wrong!!!!
info1.symLinkTarget();
QFileInfo info2(info1.symLinkTarget());
info2.isSymLink();
info2.absoluteFilePath();
info2.size(); // returns 63942
#endif
just change the shortcut to my own shortcut, but info1.size() and info2.size() have the same value, it is wrong! Please correct it!
Attachments
Issue Links
- duplicates
-
QTBUG-45218 QFileInfo::size() and QFile::size() returns link target size for windows .lnk files. This contradicts the documentation
- Reported