Qt套接字随机超时,当使用Qt的调试构建时,我得到以下警告:
QSocketNotifier: socketnotifierscannot be enabledfromanother threadQSocketNotifier: socketnotifierscannot be disabledfromanother thread
我得到了这种QsocketNotifier。这是什么?QSocketNotifier: socketnotifierscannot be enabledfromanother thread
QSocketNotifier: socketnotifierscannot be disabledfromanother t
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...QSocketNotifier: Invalid socket 14 and type 'Read', disabling...QSocketNotifier: Invalid socket 16 and type 'Read', disabling...QSocketNotifier
只要我向另一个线程中的QTcpSocket发送数据发射信号,QSocketNotifier就应该禁用自己,让QTcpSocket读取数据。should be executed in THREAD_2 but signal readyRead() never arrives here because a get error on Output: "QSocketNotifier: socketnotifierscannot be disabledfrom
QObject: Cannot create children for a parent that is in a different thread.0x2533e60), parent's thread is QThread(0x2486850), current thread is QThread(0x25341e0)QSocketNotifier: Socketnotifierscannot be enabled or disabl