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

Phil Thompson phil at river-bank.demon.co.uk
Tue Aug 6 14:00:00 BST 2002


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