Use a QAbstractItemView sub class. QScrollArea dose not work with items it works with widgets.
Consider reading a book "C++ GUI Programming with Qt-4 1st edition.":http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip
Reading a C++ book wouldn't hurt too, ass you are having problems understating simple compiler output.
Or at least use assistant.