[Qt-interest] Regarding the Threaded Fortune Server example

Diego Schulz dschulz at gmail.com
Sun Aug 30 20:56:58 CEST 2009


2009/8/30 Patric <userqt at gmail.com>:
> Hello,
> I was testing on that example and I've found out that in the thread's run
> method, if we change
>
> out << (quint16)0;
>
> out << text;
>
> out.device()->seek(0);
>
>
>
> with
>
>
>
> out << (quint16)0;
>
> out << "test";
>
> out.device()->seek(0);
>
>
>
> it's not working. If we first construct QString
>
>
>
> QString test = "test";
>
>
>
> and after that add it to the stream
>
> out << test;
>
>
>
> everything is fine. But if directly add "some string" it's not adding it.
>
>
>
> Regards,
>
> Patric
>


"test" is not a QString object.



More information about the Qt-interest-old mailing list