A template for interfacing a C++ simulation with Qt, to run in real time.