[Digikam-devel] Re: enum as parameter in QSignal not working?

Gabriel Voicu ping.gabi at gmail.com
Wed Oct 20 10:53:04 BST 2010


On Wed, Oct 20, 2010 at 12:26 PM, Marcel Wiesweg <marcel.wiesweg at gmx.de>wrote:

> Hi,
>
> I have had problems when using enums for signals, and I have had problems
> when
> using namespace-qualified types for signals.
>
> Have a look at the section "Enums and Typedefs Must Be Fully Qualified for
> Signal and Slot Parameters", http://doc.qt.nokia.com/4.6/moc.html
> maybe it needs to have the namespace in the .h file.
>
>
Thank you, guys,

It worked! In kmap_widget class, I declared the signal

void signalCurrentMouseModeChanged(KMap::MouseMode currentMouseMode) instead
of
void signalCurrentMouseModeChanged(MouseMode currentMouseMode).
It's pretty funny that QObject::connect compares the two objects literally,
but anyway, it's good to know for the future!

Have a nice day,
Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20101020/05d8551a/attachment.html>


More information about the Digikam-devel mailing list