[Qt-interest] How to use QFile with = operator?

Jesús Fernández Prieto jsfdez at gmail.com
Fri Apr 24 11:07:31 CEST 2009


Yes!

On Fri, Apr 24, 2009 at 11:00 AM, Matthias Pospiech <
matthias.pospiech at gmx.de> wrote:

> Rohan McGovern schrieb:
> >
> > Correct, because QFile is a QObject and QObjects are designed not to
> > be copied.
> >
> > In your above example, you could just call close();
> > setFileName(...); on the file instead.
> >
> >
> Ok, but what would be the equivilent for QTextStream ?
> Is it:
>
> out.setDevice(&file)
>
>
> instead of
>
> QTextStream out(&file);
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090424/160297d8/attachment.html 


More information about the Qt-interest-old mailing list