QT multi threaded application framework