Qt-interest Archive, February 2007
QEvents and QTcpSocket
Message 1 in thread
Hi,
I'm playing around with Event handling in QT 4.2.2 Open source on
Windows XP. I don't really know much about this topic.
I've run into a bit of a problem.
I've created a subclass of QTcpSocket, and then added the method below:
bool SubTcpSocket::event ( QEvent * e )
{
qDebug() << "EVENT: " << e->type();
return QTcpSocket::event(e);
}
just to try and see whats going on.
When I call connectToHost() on this object, The output looks something
like this:
EVENT: 43
EVENT: 68
EVENT: 68
EVENT: 70
EVENT: 70
Thats all great, but the QEvent::Type enum doesn't list anything for
the value 70 (it has 68, 69 and 71). A bit of searching around on the
web leads me to believe that 70 is deprecated after QT3.... I'm a bit
confused. Have i missed something obvious here? Any help much
appreciated.
George
--
[ signature omitted ]