We had the above problem and could not find on the forum posts that dealt with it, and thought to post the solution in case someone else will for it here.
http://labs.trolltech.com/blogs/2007...slots-with-qt/
We had the above problem and could not find on the forum posts that dealt with it, and thought to post the solution in case someone else will for it here.
http://labs.trolltech.com/blogs/2007...slots-with-qt/
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
This doesn't work for me. I tried the CONFIG += no_keywords which resulted in lots of errors like :
ISO C++ forbids declaration of ‘signals’ with no type
ISO C++ forbids declaration of ‘slots’ with no type
and if I remove the CONFIG += no_keywords I get the following stupid errors :
/usr/include/boost/signals/detail/signals_common.hpp:26: error: expected identifier before ‘protected’
/usr/include/boost/signals/detail/signals_common.hpp:26: error: expected unqualified-id before ‘protected’
.tmp/moc_robotmanager.cpp:81: error: expected `}' at end of input
The only way i can make it work is by including :
- #include <boost/signal.hpp>
- #include <boost/bind.hpp>
at the top of each header file which really doesn't make any sense !!!
Is there anyway to get rid of this stupid naming clash ??
You can use "CONFIG += no_keywords" in .pro file and use Q_SIGNALS and Q_SLOTS instead of "signals" and "slots"
A camel can go 14 days without drink,
I can't!!!
Bookmarks