Is the file created by moc updated when you change contents of your class? In other words - are you mocing the class?