C++ GUI Programming with QT4 book first few examples.
HelloQt and Quit