Op 14-9-2012 14:42, Heidler, Kirstin (GE Oil & Gas) schreef:
> Hi,
>
> thank you, I also found a different solution. I am not sure why it is 
> working, but it does.
> I simply  create the file object as a pointer to the file object like that:
>     QFile *file;
>      file = new QFile(fileName);
>      file->open(QIODevice::ReadOnly);
>
> Thank you for the hint. :)
> Kirstin
>
If you're not sure why this works, then you should really re-read the 
answer given by Thomas, as well as your basic C++ book.

My question is: who deletes the QFile instance that you created, and when?
Considder making your QFile instance a member of your parser class instead.

André

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to