[Qt-interest] Regarding the Threaded Fortune Server example

Patric userqt at gmail.com
Sun Aug 30 18:37:29 CEST 2009


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






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090830/6f0b77dc/attachment.html 


More information about the Qt-interest-old mailing list