Hello.. I have a Qt application (an agent-based model) with a GUI thread and a "model" thread that runs for hours.
I managed to get a way to stop/pause/resume/ the model thread from the GUI, and also to pass data from the model thread to the GUI for run-time visualisation
However now I'd like to "ask" the model thread for a specific information (values for a plot, passing as parameter an integer), and then the model thread would give back the info to the GUI in the usual manner..
The problem is that it doesn't work.. when I am inside a function of the model thread ( a QThread derived class) called from the GUI I got different values than if I run the same function from the normal model "path".. like they are different instances, or ??...
Which is the right approach to do something like that?? When I am going ask the model thread for data I just want "read" them..
ciao.. and happy 2008
Sylvaticus
Bookmarks