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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to