On Wed, Oct 20, 2010 at 12:26 PM, Marcel Wiesweg <span dir="ltr"><<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I have had problems when using enums for signals, and I have had problems when<br>
using namespace-qualified types for signals.<br>
<br>
Have a look at the section "Enums and Typedefs Must Be Fully Qualified for<br>
Signal and Slot Parameters", <a href="http://doc.qt.nokia.com/4.6/moc.html" target="_blank">http://doc.qt.nokia.com/4.6/moc.html</a><br>
maybe it needs to have the namespace in the .h file.<br>
<br></blockquote><div><br></div><div>Thank you, guys,</div><div><br></div><div>It worked! In kmap_widget class, I declared the signal</div><div><br></div><div>void signalCurrentMouseModeChanged(KMap::MouseMode currentMouseMode) instead of </div>
<div>void signalCurrentMouseModeChanged(MouseMode currentMouseMode). </div><div>It's pretty funny that QObject::connect compares the two objects literally, but anyway, it's good to know for the future!</div><div><br>
</div><div>Have a nice day,</div><div>Gabriel</div></div>