It tells qmake to run moc on this file and generate "main.moc" with implementation of the signals and slots mechanism. You must use it when you place class definition with Q_OBJECT macro in a .cpp file.