Following qt tutorial

Displays a simple graph in qt window.