[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [Fwd: 2 problems while developing for KDE]
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-03-06 21:54:43
[Download RAW message or body]

On Tuesday 06 March 2001 00:40, Michael Goffioul wrote:
> Dirk Mueller wrote:
> > On Mon, 05 Mär 2001, Michael Goffioul wrote:
> > > QObject::connect: No such slot KMWClass::cleanupEventFilter()
> > > QObject::connect:  (sender name:   'unnamed')
> > > QObject::connect:  (receiver name: 'unnamed')
> > >
> > > But I don't make my self this connection. So I don't know where it
> > > comes from.
> >
> > are you installing an event filter ? try adding a Q_OBJECT macro to the
> > super class.
>
> I don't install anything, the word "cleanupEventFilter" doesn't appear at
> all in my code, that's why it's strange to get this error. Anyway adding
> the Q_OBJECT macro solves the problem.

Some internal Qt method connects to this slot, but it can't find the slot 
because by leaving out the Q_OBJECT macro, you 'break' the inheritance chain 
wrt Qt slot/signals: the child class can't find the signals/slots defined by 
its grandparent any more.

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic