[PyKDE] QSpinBox doesn't work as expected within QSqlForm

Hans-Peter Jansen hpj at urpla.net
Tue Aug 6 13:43:00 BST 2002


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.

Thanks in advance,
  Hans-Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbform2.py
Type: text/x-python
Size: 1824 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20020806/f2e0373a/sbform2.py


More information about the PyQt mailing list