View Full Version : getting filelength
eric_vi
2nd August 2009, 17:53
hello what is the fastest way to get a filelength with qt?
Tino
2nd August 2009, 18:31
QFile.size() returns a qint64 representing the size of the file in bytes.
See http://doc.trolltech.com/4.5/qfile.html#size
Fastman
2nd August 2009, 18:32
hello what is the fastest way to get a filelength with qt?
QFile fSomeFile("d:/myfile.ext");
qint64 nFileSize = fSomeFile.size(); //in bytes
qDebug() << nFileSize;
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.