I try to build a Multi Threading Game Server used QT,so, every client is a standalone thread based "QThread".now I need to send data to other clients(in other thread) whichs in the same game room. example,When a house-owner closed the game room, the Game Server needs to send to the "room_closed" message to other clients whichs in the same soom, but there is an error :
QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
ps: I tryed to use the sinals/slots but there is still a error:
QObject: Cannot create children for a parent that is in a different thread. (Parent is QNativeSocketEngine(0x161764e8), parent's thread is ClientThread(0x16196f10), current thread is QThread(0x14a17278)
what should I do?