I'm trying to create a socket connection from my QT application to a server(regular socket, not a QTcpSocket), to receive data from the server.
The problem is, the connect
method, upon compilation, gives an error, and points me in the direction of the QT connect method for connecting signals to slots.
How do I tell the compiler to ignore the signal and slot function of QT and find the original socket.h connect function instead?
You should write
::connect(...);
To use the proper function. This ensures that resolution occurs from the global namespace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With