[Interest] QXmlStreamReader and qDebug()

Alexander Syvak alexander.svk at gmail.com
Sat Jul 27 00:51:36 CEST 2013


Inside the qdebug.h qDebug() creates QDebug object with QTextStream object
encapsulated. operator<< is evaluated from the left to the right each time
returning QDebug object.
Why would there be any randomness?
And start_element() with name() should not influent on the execution reult
of the read_element_text() only because they are queries.


2013/7/27 Thiago Macieira <thiago.macieira at intel.com>

> On sábado, 27 de julho de 2013 00:04:36, Alexander Syvak wrote:
> > qDebug() << pxml->start_element() << pxml->name();
> >
> > qDebug() << pxml->read_element_text();
> >
> > #2
> >
> > qDebug() << pxml->start_element() << pxml->name() <<
> > pxml->read_element_text();
>
> > Why?
>
> The functions aren't called in the same order.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130727/2a2a6d1b/attachment.html>


More information about the Interest mailing list