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

List:       kde-devel
Subject:    Re: [kde-devel] KWizard/QWizard problem
From:       Björn Sahlström <bjorn.sahlstrom () mail ! bip ! net>
Date:       2002-06-08 23:26:49
[Download RAW message or body]

On Sunday 09 June 2002 00.16, Debian User wrote:
> Hm... i don't think you have understood how Qt and C++ work: connect is
> defined as connect( QObject*, const char*, QObject*, const char* ), so
> casting the this to some other type of pointer will only cause it to be
> cast back by your compiler... Furthermore, slots don't work like c++
> members, if you cast a pointer to a parent type pointer, the slots of
> the original type are still available through the QObject* interface...
>
> bye
> domi

I'm well aware of both Qt adn C++ :) but actually this has solved similar 
problems for me, and QObject::connect(...) doesn't cast anything, it's rather 
a typical case of dynamic bindings.
-- 
Mvh
Björn Sahlström
kbjorn@users.sourceforge.net

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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