QFileInfo::size()

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 253
Joined: Thu Jun 11 2020 12:18 pm

QFileInfo::size()

Post by seasoned_geek »

This
https://www.copperspice.com/docs/cs_api/class_qfileinfo.html#abfae4bab3619fb3a839fc0158c51c8f7

is one of the many places where Qt project made incredibly poor decisions. They used a qint64 instead of a quint64 for the return value of size(). Unless there is a legitimate (not just convenient) reason to return a negative value, this should be quint64. We can now have 16TB NAS devices at home.
Post Reply