Q_OBJECT / class definition should be in a header and not in source file. Otherwise qmake/moc will not recognize Q_OBJECT macro.
Move it to a header and add it to HEADERS in your pro-File.
/edit: Also you'll see a Qt warning on executing your programm (after you clicked on your button) which points you to this problem.
Bookmarks