Thanks jacek for the explanation.Actually ,i am using qmake.Should I use the moc file each time i want to define Signals or Slots in a class??