[Qt-interest] QFile private member

Bob Hood bhood2 at comcast.net
Tue Feb 10 22:50:41 CET 2009


Scott Aron Bloom wrote:
> You are creating a new QFile, except by using QFile rather then QFile *.
>
> Simply making it a QFile *, and then in the constructor, creating a
> blank QFile...
>
> file = new QFile;
>
> You will solve all your issues...

Remembering, of course, to delete it in your destructor, unless you want
to create new issues.  ;)

-- 
Render me gone,                       |||
Bob                                 ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
        Don't stand there, with a drink in one hand and a cigarette in
          the other, and lecture me on the evils of drug use.  Idiot.




More information about the Qt-interest-old mailing list