Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
increment variable of server class for each thread
fari35 last edited by
In this example:
I want to increment the value of count (which is a variable of server class) in each thread when the client connects to the server. How can I do that?
How can I do that?
Emit a signal in each thread as soon as a new client connects. Connect a slot to that signal and increment the count variable there.