How to update the progress bar to show the progress of copying a file because QFile
documentation says:
Unlike other
QIODevice
implementations, such asQTcpSocket
,QFile
does not emit theaboutToClose()
,bytesWritten()
, orreadyRead()
signals. This implementation detail means thatQFile
is not suitable for reading and writing certain types of files, such as device files on Unix platforms.
I would greatly appreciate any help on this.