I need get the File size while it is being generated.
I've tried using QThread and QFileInfo::size
and a while
with a flag that signals when the finished file, but the value never changes.
So was wondering if you can take the file size while it is being generated.
From the Qt docs:
So try the
QFileInfo::refresh()
function before (re-)checking the file size.