Did you add the "mainwindow.ui" file to your project file and reran qmake? I guess you did... nevermind...