[Qt-interest] QLineEdit loosing its selection

Oliver Demetz forenbeitraege at oliverdemetz.de
Mon Aug 3 11:44:45 CEST 2009


Martin Hofius schrieb:
> why don't you create the popup as a sibling to your line edit? This way you 
> can activate the line edit each time after you click in your virtual 
> keyboard... and you don't have to treat each keypress yourself ;-)
> 
Well, the thing is that as soon as (any) other widget is clicked, the 
selection is removed.
So, at the moment the widget gets a mouse down event and I could react, 
the selection *is already gone*.
The mechanism is built deep into Qt and I don't know how to disable it.

Regards,
Oliver



More information about the Qt-interest-old mailing list