Page 1 of 1

QFileInfo::size()

Posted: Wed Oct 05 2022 6:17 pm
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.