[Qt-interest] Tcp Socket problem (with bonus Menu glitch)
fungos
fungos at gmail.com
Tue Apr 21 23:20:33 CEST 2009
It crashes when trying to read the string, this was based on network
fortune sample from docs.
QDataStream in(toServer);
log->append(tr("[CLI] Received message from server"));
QString str;
//in >> str;
On Tue, Apr 21, 2009 at 1:43 PM, Neel Basu <neel.basu.z at gmail.com> wrote:
> On Tuesday 21 April 2009 10:42:22 fungos wrote:
>> Hi, I'm having issue testing some problems:
>>
>> 1. With Tcp sockets, when I try to read a buffer from a socket it
>> crashes (after readReady signal).
>
> I'vent gone through your code
> However I think you have used
> either read(char * data, qint64 maxSize)
> or read(qint64 maxSize) or something similer to read the data.
> and maxSize is more than the bytesAvailable()
> Try using readAll()
> It might be fixed
>
>> 2. I'm having a problem with menu, that the 2 first menus won't work
>> with mouse over, just if you come from a over of another menu option
>> (this happens if I instantiate TcpTest. If I comment that line the
>> menu works normal).
>>
>> You can download my tests from here:
>> http://danny.cabelo.googlepages.com/FBBF.rar
>>
>> Thanks
>
>
--
Animal Frontline Liberation
More information about the Qt-interest-old
mailing list