Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的课堂上使用 winsock 函数(而不是 QTcpSocket 或 QUdpSocket)。但是我的类继承了QObject,所以来自QObject的connect()与来自winsock2.h的connect()冲突我怎么能绕过这个冲突,我正在搜索“Winsock2 :: connect()”或类似的东西,但我找不到。谢谢
尝试使用::connect(用于 winsock 连接)和this->connect或QObject::connect用于 Qt 的连接()。
::connect
this->connect
QObject::connect