I am writing a C++ program and I\'m using QT for the GUI. I need to pass data from a QT thread to another, so I decided to use an external variable but it does not work. Thi