Density example in QT