hello what is the fastest way to get a filelength with qt?
hello what is the fastest way to get a filelength with qt?
QFile.size() returns a qint64 representing the size of the file in bytes.
See http://doc.trolltech.com/4.5/qfile.html#size
Last edited by Tino; 2nd August 2009 at 18:36.
Qt Code:
qint64 nFileSize = fSomeFile.size(); //in bytes qDebug() << nFileSize;To copy to clipboard, switch view to plain text mode
ihope (11th August 2009)
Bookmarks