communicate

What is the best practice for communicating with another thread in Qt?

I have a QThread derived class that communicates with the main thread by sending QEvents to it. What is the best way for the main thread to communicate with the second thread? The main thread has a pointer to the second one. ...

python subprocess block

Hello. I'm having a problem with the module subprocess. I'm running a script from python through: subprocess.Popen('./run_pythia.sh',shell=True).communicate() and sometimes it just blocks and it doesn't finish to execute the script. Before I was using .wait() instead of .communicate() but then because of this: http://dcreager.net/2...