[PyKDE] Next attempt to tackle QSpinBox strangeness

Hans-Peter Jansen hpj at urpla.net
Fri Jan 24 13:50:01 GMT 2003


On Friday 24 January 2003 01:46, Doug Bell wrote:
> Hans-Peter Jansen wrote:
> > Hi *,
> >
> > attached, you will find an app to reproduce some strangeness with
> > QSpinBox behaviour.
> >
> > Problem: reimplemented QSpinBox don't get focus events and doesn't behave
> > correctly on up/down cursor key events (value doesn't change).
>
> I'm not sure if this is your problem (I haven't gone through your
> example in detail), but I've also seen unusual behavior with QSpinBox
> focus events.  I no longer remember details, but the problem concerns
> events being sent to the embedded QLineEdit within a spin box.  You can
> access the embedded editor using the spin box's editor() method and
> check for events there.

Doug, thanks for your answer. Unfortunately accessing editor() isn't
always an option, since it would make simple database frontends f.e.
effusively complicated, if possible at all. Hopefully we get this
fixed, and forget about it again.

> Hope this helps,
> Doug.

Cheers,
Pete




More information about the PyQt mailing list