Simple program using pthread library. GUI presenting data written in Qt 4.8