[PyKDE] QSpinBox doesn't work as expected within QSqlForm
Hans-Peter Jansen
hpj at urpla.net
Wed Aug 7 00:00:01 BST 2002
Thanks to everybody, who gave feedback.
To summarize:
Problem is reproducible under Qt 3.0.4, seems not depending on the
PyQt nor the Python version, as reported from Boudewijn and Detlev
and me.
Neither Qt 3.0.3 nor Qt 3.0.5 show this effect, as reported from
Willi, Peter and yourself. The real pain is, it works in c++, thus
Qt seems to be innocent here.
Oh well, digging time... Any ideas welcome!
Hans-Peter
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.
>
> Phil
More information about the PyQt
mailing list