QT draws a set of data