[Qt-interest] About stop processing key events while QLineEdit evaluates

Zeljko zeljko at holobit.net
Thu Oct 27 08:21:04 CEST 2011


Hi,

Is there any way to stop key events while QLineEdit evaluates someting in 
QEvent::FocusOut ?

This is construction:
1. When user press return key it does same job as tab key -> goes to next 
control.
2.FocusOut triggers on focused control -> now there's call to hugedatabase which 
evaluates something (can be few msecs but also few seconds).

3.If user constantly nervously presses return key (or even user pushed return 
key, so auto repeat triggers) while in evaluation process, nothing happens at 
that time, but when evaluation finishes, cursor is passed few controls since qt 
now sends all return keys pressed while 1st QLineEdit evaluated.

I've tried to delete all key events after evaluation finishes, but doesn't help.

Anyone  ?

Thanks.

zeljko



More information about the Qt-interest-old mailing list