[Interest] Deleting the QNetworkAccessManager post(req, iodev) QIODevice?

Jason H jhihn at gmx.com
Wed Mar 2 17:37:23 CET 2016


QFile *f = new QFile(filename);
f->open(QIODevice::ReadOnly) 
...
nam.post(req, f);
...

// sometime later in the finished slot:
finished(QNetworkReply *reply) {

 // how to close and delete f ? (The QFile object)

}

Thanks



More information about the Interest mailing list