- 
    Bug 
- 
    Resolution: Unresolved
- 
    P4: Low 
- 
    None
- 
    5.4.1
- 
    None
- 
    msvc 2012 amd64
 qt 5.4.1
 win 8
QFile::size() and QFileInfo::size() both return the size of the link's target and not of the .lnk file itself.
QFile::open() does however open the .lnk file.
The attatched sample app shows the problem:
Output:
path   : "C:/Users/Kim/Desktop/wat.exe.lnk"
symlink: true
target : "C:/wat.exe"
QFileInfo.size    : 1018368					// this is wrong
stat.st_size      : 716
QFile.readall.size: 716
QFile.size        : 1018368					// this is wrong
path   : "C:/wat.exe"
symlink: false
target : ""
QFileInfo.size    : 1018368
stat.st_size      : 1018368
QFile.readall.size: 1018368
QFile.size        : 1018368
- is duplicated by
- 
                    QTBUG-45989 QFileInfo.size() for shortcut in windows is wrong! -         
- Closed
 
-         
- relates to
- 
                    QTBUG-77523 QFileInfo::size() reports the size of symlink target instead of the link file itself, contrary to the documentation -         
- Closed
 
-