[PyQt] Problem with QTest

Antonio Valentino antonio.valentino at tiscali.it
Wed Dec 31 12:54:46 GMT 2014


Hi lloyd,

Il 31/12/2014 13:32, lloyd konneker ha scritto:
> A guess: QSpinBox inherits a signal editingFinished, which is not emitted until focus changes, say if the user keys the ‘enter’ key.  So the valueChanged signal is not emitted until then.  Maybe value() reports the old value until then also?  But then, if you comment out your line, why does it work?
> 
> Have you tried:  keyClicks(…,  ’34\n’ )  with a newline?

Actually I tried with keyClicks(…, QtCore.Qt.Key_Enter) but with no luck.
I also tried to file editingFinished directly ... same result.

Thanks anyway for your hint


cheers

-- 
Antonio Valentino


More information about the PyQt mailing list