I don't use moc in the project. With new signal/slot syntax it works pretty good. But became necessary to emit signal in the derived Qt class.
It is possible without using moc?
I don't use moc in the project. With new signal/slot syntax it works pretty good. But became necessary to emit signal in the derived Qt class.
It is possible without using moc?
No, this is not possible.
moc actually implements the signal function. If you look into the generated signal function by looking at the generated moc_myclass.cpp, you'll see that the signal function is nothing more than a call to QMetaObject::activate
, and that function requires a pointer to the QMetaObject
of the signal sender. Since without running moc, no metaobject is generated, you can't even call QMetaObject::activate
manually.