Hi all,
short question with simple code:
QFile from
("/home/chris/backup.tar.bz2");
QFile to
("/home/chris/Test/backup.tar.bz2");
connect(&to, SIGNAL(bytesWritten(qint64)), this, SLOT(onWrite(qint64)));
from.copy(to.fileName());
(...)
void MyClass::onWrite(qint64 bytes) {
qDebug() << bytes;
}
QFile from("/home/chris/backup.tar.bz2");
QFile to("/home/chris/Test/backup.tar.bz2");
connect(&to, SIGNAL(bytesWritten(qint64)), this, SLOT(onWrite(qint64)));
from.copy(to.fileName());
(...)
void MyClass::onWrite(qint64 bytes) {
qDebug() << bytes;
}
To copy to clipboard, switch view to plain text mode
The file will be copied, but no bytes are shown! Why?
Thx!
Chris
Bookmarks