thanks for your help,but i think i don't explain my desigh explicility
firstly,I want to create a thread,and creat a socket in the thread for some client's connection.
secondly,I want the gui-mainthread to notify the created thread to send some message to the client..So I use signal/slot for it,just like i clicked a button,then emit a signal which send by gui to the created thread,it is a blocked operation.
now the slot recfserveris useful for accept the signal,then i want to operate tcpsocket in the slot.can i into the run for the operation?
could you tell me what other methods which can realize the function
thank you very much!
i subclass Qtcpsocket,and transfer the signal to the thread ,then to the socket,the problem is solved ,thanks for your help
Bookmarks