Code for Demo 2 from 10/13/11
Demo2.pro
Demo2.pro.user
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui