example is complete and it is functional.
it is from book:
C++ GUI Programming with Qt 4
autors : Jasmin Blanchette, Mark Summerfield