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

List:       kde-devel
Subject:    Re: Changing implementation at runtime.
From:       Roberto Alsina <ralsina () conectiva ! com ! ar>
Date:       2001-04-20 21:26:41
[Download RAW message or body]

On Fri, 20 Apr 2001, David Faure wrote:

> On Friday 20 April 2001 02:45, Haavard Froeiland wrote:
> > Hi, I need some help implementing an "bridge pattern" in an kde application. 
> > I have a widget which are receiving and sending signals. I want to swap this 
> > widget with another widget and still having the signals/slots connected. Is 
> > this possible? I'm getting errors in the moc files when I'm trying this.
> > 
> > .... reguest for member 'badSuperclassWarning' is ambiuous in multiple 
> > inheritance lattice ....
> 
> You can't multiply inherit from QObjects. You can have a QObject and
> another parent class - in this case make sure the QObject is first
> in the list of parent classes.
> 
> BTW, another way to swap widgets is QWidgetStack ... but maybe
> that's not what you want.

Or maybe just disconnect and reconnect everything, then change the
widgets the oldfashioned way (hide() show()).

I remember doing such things :-)

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@conectiva.com.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Director técnico
  _..`-'_..-_/ /-'_.'           Conectiva SA
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
                                KDE Developer (MFCH)
Futuaris nisi irrisus ridebis. (Carlton, De rerum comoedia)


>> Visit http://master.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