Hi,
Don't think would work because the focus of QLineEdit is lost(producing editFinished) before the close signal is emmited.
Thanks,
Hi,
Don't think would work because the focus of QLineEdit is lost(producing editFinished) before the close signal is emmited.
Thanks,
Òscar Llarch i Galán
Override closeEvent() of the window and call QObject::blockSignals(true) on the line edit.
J-P Nurmi
Hi,
Thanks, works perfectly.
Òscar Llarch i Galán
Hi,
I have another problem:
When I change the application using the mouse or Alt+Tab:
The QLineEdit let's me introduce a code. This code is used as index to get information from a QList. If I have no text on the QLineEdit and change the application, the QLineEdit emits a finishEdit signal that tries to index the QList, and as it don't find the code, I make a QMessageBox that show that the "Code introduced" is not valid. This QMessageBox is showed many times until the application hangs.
I use this approach because I want a step by step application(without QWizard), that the first step is to get the information indexed by the code introduced.
Thanks,
Òscar Llarch i Galán
Bookmarks