PDA

View Full Version : How to pass the value of a QLineEdit to a thread'd thread.



freak
13th June 2006, 20:42
I have a gui app that starts a thread. This thread is running a QTcpServer which on each new connection creates a new connection handler class.

How do you pass the value entered in the QLineEdit of the GUI app to the handler class?

Thanks in advanced.

vratojr
14th June 2006, 08:12
Hi what about adding to the thread a function like:

void addParameter(parameter)
that uses a mutex to protect thread's data?