Qt-interest Archive, May 2008
what is QT_MOC_COMPAT
Message 1 in thread
Hi,
What does QT_MOC_COMPAT mean?
Thanks
Yifei
Message 2 in thread
I suggest you to always keep a source copy of Qt4 somewhere, so when you have
some doubts on the internals a quick "grep" (or recoursive search in files)
can reveal you the answer.
By looking for QT_MOC_COMPAT in the sources:
- it's used to mark QT3_SUPPORT's Signals and Slots in mainline classes
- when it's used (and QT3_SUPPORT is enabled) defines those signals and slots
as "deprecated"
- it tells the "moc" program that those signals or slots are only added for
QT3_SUPPORT purposes
In the end, if you're using the QT3_SUPPORT module, some dozens of signals and
slots are added to the non-qt3-support classes too (for internal use, I
think). In that case the compiler will tell you that using those signals and
slots is 'deprecated'.
If you found such a warning, look for 'pure' Qt4 stuff and use it ;-)
Enrico Ros
On Saturday 10 May 2008 19:11:16 Yifei Li wrote:
> QT_MOC_COMPAT
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Ti vestiamo dalla testa ai piedi e anche sotto se lo vuoi ! Clicca su www.grandinettisport.com
*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7502&d=11-5
--
[ signature omitted ]