[Qt-interest] QFile private member

Stanislas Polu spolu at stanford.edu
Tue Feb 10 21:35:02 CET 2009


Indeed, the constructor is private... therefore
PrivateFile::PrivateFile(const QString &fileName)
       : file(QFile(fileName))
{
}

won't work either...

I have to agree with Andy, you can keep track of a pointer to a QFile rather
than the QFile itself.

Cheers,

-stan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090210/c453a671/attachment.html 


More information about the Qt-interest-old mailing list