Model-view-controller programming with Qt