[PyKDE] QSpinBox doesn't work as expected within QSqlForm
Hans-Peter Jansen
hpj at urpla.net
Tue Aug 6 16:06:00 BST 2002
On Tuesday 06 August 2002 13:59, Phil Thompson wrote:
> Hans-Peter Jansen wrote:
> > On Monday 05 August 2002 20:13, Phil Thompson wrote:
> >>Hans-Peter Jansen wrote:
> >>>Hi *,
> >>>
> >>>while struggling with QSqlForms, I observed a strange bahaviour of
> >>>QSpinBoxes in QSqlForms. Arrow up/down keys simply don't work. All
> >>>other keyboard/mouse events are handled fine. A corresponding c++
> >>>version doesn't show this anomaly.
> >>>
> >>>For your convenience, I've attached my test scripts/sources.
> >>>They're based on $QTDIR/examples/sql/overview/custom1 and my sql
> >>>examples environment.
> >>>
> >>>Any hints are highly appreciated.
> >>
> >>It worked fine for me.
> >>
> >>Phil
> >
> > Take Two:
> >
> > I finally found out, that this effect isn't related to QSqlForms.
> >
> > Please, everybody, who can spend three minutes: run the attached
> > script, and check, if both spinboxes can be controlled with the
> > arrow keys.
> >
> > Top spinbox is a Qt native one, below is a reimplemented
> > one with a custom eventFilter. This one is working fine for me,
> > but the first isn't (Qt 3.0.4, PyQt 3.3.2, Python 2.1.1, Linux)
> > All other events seem to work fine, including wheel events, BTW.
>
> Both work fine for me. Qt 3.0.5, latest PyQt snapshot, Python 2.2.1.
With sip-snapshot-20020714, PyQt-snapshot-20020805, but keeping Qt,
it doesn't work either. So it's maybe a Qt 3.0.4 (build) issue here.
Do you have any debugging hints for such a case?
Seems, I will need to go thru the 3.0.5 hassle :-(
Hans-Peter
> Phil
More information about the PyQt
mailing list