Model/view example. Zie http://qt-project.org/doc/qt-5.0/qtwidgets/