[Qt-interest] Customizing QSpinBox in Qt4
Andreas Pakulat
apaku at gmx.de
Tue Jun 30 09:12:28 CEST 2009
On 30.06.09 07:55:04, Lars Amsel wrote:
> Hi Alex,
>
> Malyushytsky, Alex wrote:
> >>> This works. What I dislike is, that I have to subclass the spin box to
> >>> change something I consider to be a property.
> >
> > Why do you dislike an idea of subclassing? The only thing came to my mind
> > it was inconvenience of using QDesigner with subclasses in Qt3 (creating
> > and managing addons added extra complexity) . Qt4 added "Promoting Widgets"
> > feature which fixed that problem.
>
> As I said in my initial mail, I don't like the idea of subclassing for
> changing things that I suppose to be a property. To my experience this leads
> either to a uncontrolled growth of subclasses or one fat subclass containing a
> lot of incoherent extensions, typically called QExSpinBox or something
> similar. I don't like both. That's why I asked for a solution that avoids
> subclassing.
Well, how is that different from a QSpinBox that is huge and fat just to
satisfy every possible usage-scenario?
Andreas
--
Artistic ventures highlighted. Rob a museum.
More information about the Qt-interest-old
mailing list