what would be the point in using moc to generate code? your problem is still a run-time problem, so moc can't help you there...