[Qt-interest] QLineEdit loosing its selection
Oliver Demetz
forenbeitraege at oliverdemetz.de
Mon Aug 3 11:12:14 CEST 2009
Hi all!
If I enter text in my QLineEdit, and make a selection in this text, and
if I then click somewhere else in my app, the selection is removed
automatically.
This is the usual and standard behaviour.
Ok.
BUT:
As a child of my QLineEdit, I am opening a widget (window flag
Qt::Popup) that has virtual keyboard functionality.
If I click a button inside this child widget, I would like circumvent
that the selection is removed before this.
Actually, another thing I dont like is that the text cursur disappears
as soon as the virtual keyboard pops up.
Any idea how I can change this QLineEdit's standard bahviour?
See attachment for the classes.
Thanks a lot in advance,
Best regards,
Oliver
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VirtualKeyboard.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090803/5a3e72ab/attachment.h
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VirtualKeyboardLineEdit.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090803/5a3e72ab/attachment-0001.h
More information about the Qt-interest-old
mailing list