I want to use the preprocessor to make the generation of a certain type of QObject derived class easier. Namely I want to make a QObject that has a slot with some arbitrary signature that translates a Qt signal into a boost signal (which I can use bind with).
The class structure is built just fine when I try this, it seems, but the moc output doesn't contain metaObject, qt_metacast, nor qt_metacall.
How might one go about generating classes capable of being connected to Qt signals with either templates (which I know can't have slots) or the preprocessor? I'm using VS2010 with the Qt plugin.
Bookmarks