QFile and QProgressBar.
Okay, so I realise that I can't capture the bytesWritten() signal in order to show the file copy progress of the QFile.copy() function on a QProgressBar, but it's my understanding that this can be done using the QIODevice class, be it somewhat more complicated.
How might one go about achieving this in C++? Thank you for you help. |
Quote:
Besides, what Qt version? In Qt 4 - derive your own class from QProgressBar that has slot that accepts quint64. Or make temporary slot somewhere that can be linked to QFile's signal and will emit another signal for QProgressBar. |
Qt 4.
Quote:
Thanks once again. |
Quote:
If it isn't emitting signal, then you can create your own copy routine (or class or whatever), that will emit required signal. You might even try to make your own QFile derivative that supports those signals, but that might be too difficult. If I were you I'd write class (based on Q_OBJECT, of course) for copying files, and made it emit signals you need. |
All times are GMT -5. The time now is 11:59 AM. |