mercredi 29 juin 2016

How to define signals with macros in Qt

I try to create a some standart signal definitionsfor some classes with macros like:

#define CREATE_SIGNALS void error_signal(QString error);

Functions are created, but moc did not create methods for these functions. It seems that moc is running before macros processed. How can i make this work?

Aucun commentaire:

Enregistrer un commentaire