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

List:       kde-devel
Subject:    Re: Composed widget
From:       Daniel Molkentin <daniel () molkentin ! de>
Date:       2006-01-29 16:35:19
Message-ID: 200601291735.19840.daniel () molkentin ! de
[Download RAW message or body]

Am Sonntag 29 Januar 2006 16:49 schrieb Thomas Baumgart:
> Currently, we have the KMyMoneyEdit widget being a derivative of QHBox and
> create the KLineEdit and KPushButton within the constructor. This has the
> disadvantage, that the interface of our widget is not based on KLineEdit
> but rather on QHBox. It would make much more sense, that KMyMoneyEdit has
> the same interface as KLineEdit.
>
> Is there an easy way to derive KMyMoneyEdit from KLineEdit with the above
> mentioned layout? How would that be coded?

I don't think that this is the right approach. So let me first ask: How are 
you using that widgets? 

Are you trying to use the widgets properties from within designer? If so, I 
don't think there is an elegant way of dealing with those things. If you just
need a generic widget that you access from code, I'd suggest to provide 
accessor methods le() and pb() (I'd make it more verbose, but that's really 
up to you) from a derived QHBox class.

Cheers,
  Daniel

 
>> 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