[Qt-interest] QLineEdit loosing its selection
Martin Hofius
Martin at hofius-online.com
Tue Aug 4 12:52:10 CEST 2009
please write to the list...
Am Dienstag, 4. August 2009 schrieben Sie:
> Martin Hofius schrieb:
> > so one possible way is to react on the
> > void QLineEdit::selectionChanged () [signal]
> > and to maintain the selection yourself.
>
> Hi, I tested that, but the problem is that at the point where this
> signal is actaully emitted, the selection has changed already, so there
> is no easy way to restore the selection.
ok, I thought you save the selection each time the selection changes - before
the widget looses avtivation. So you can restore the selection afterwards.
You may store a history of two selections, if the last signal contains a lost
selection...
Greetings
Martin
More information about the Qt-interest-old
mailing list