[Qt-interest] Regarding the Threaded Fortune Server example
Patric
userqt at gmail.com
Sun Aug 30 23:35:58 CEST 2009
> "test" is not a QString object.
And what ? Sorry if I'm missing something.
QDataStream & operator<< ( const char * s )
Regards
----- Original Message -----
From: "Diego Schulz" <dschulz at gmail.com>
To: <qt-interest at trolltech.com>
Sent: Sunday, August 30, 2009 9:56 PM
Subject: Re: [Qt-interest] Regarding the Threaded Fortune Server example
> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list