The connect function from winsock in the inherited QObject class

I would like to use the winsock functions (and not QTcpSocket or QUdpSocket) in my class. But my class inherits QObject, so the connect () from QObject is in conflict with connect () from winsock2.h How could I get around this conflict, I'm looking for "Winsock2 :: connect ()" or something like that, but I I can not find. Thanks

+3
source share
1 answer

Try using ::connect(to connect winsock) and this->connector QObject::connectfor Qt connect ().

+5
source

All Articles