QVTKWidget uses QT keywords that interfere with Boost signals / slots
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Qt #defines three lower-case words to appear as an extension to C++: signals, slots, and emit. This interferes with other use of those terms, e.g. a method named emit() is not possible. Nor is an alternative implementation of signals and slots.
The way around this is to #define QT_NO_KEYWORDS on the compiler invocation and change the code as follows:
signals -> Q_SIGNALS slots -> Q_SLOTS emit foo() -> foo()
Removing these keywords now allows us to use them as normal and leaves the door open for using the Boost implementation of signals & slots alongside Qt’s, should that prove useful. See http://www.scottcollins.net/articles/a-deeper-look-at-signals-and-slots.html for a comparison.