make sure startwindow.cpp is added to your .pro file; maybe you need to run qmake again?