[PyQt] Problem withi focus when validating QLineEdit in QWizard

Isaac Gerg isaac.gerg at gergltd.com
Fri Mar 28 15:55:38 GMT 2014


Hello everyone,

I have an MDI window in which a QWizard opens via QMdiSubWindow.  On
the last page of my wizard, I have a QLineEdit that I would like to
behave such that the Finisih button is disabled until at least one
character is typed into the QLineEdit. When I implement this, as soon
as the Finish button becomes enabled, my QLineEdit looses focus and
must click the mouse  back into the QLineEdit manually after typing
every letter (very annoying).

How do I fix this?  I should add that everything behaves as expected
when I run the wizard outside of a QMdiSubWindow.

Thanks in advance,
isaac


More information about the PyQt mailing list