[Interest] Interest Digest, Vol 12, Issue 40
Rayner
rpgomez at uci.cu
Fri Sep 14 17:29:31 CEST 2012
If you want to keep file as a non member pointer in your ctor, then you must
set a parent to avoid memory leaks:
QFile *file = new QFile(this);
By setting a parent, memory taken by the file pointer also is destroyed on its
parent deletion
10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci
More information about the Interest
mailing list