Bug 307748

Summary: Getting and clearing text from QLineEdit, error when predictive text from virtual keyboard is on
Product: [Unmaintained] Necessitas Reporter: tomaslov
Component: Android Qt4Assignee: BogDan Vatra <bogdan>
Status: RESOLVED UNMAINTAINED    
Severity: critical CC: colruby2, qt
Priority: NOR    
Version: alpha4   
Target Milestone: Unspecified   
Platform: Android   
OS: Android 4.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Test application
Illustrating images

Description tomaslov 2012-10-02 20:14:02 UTC
The following issue occur when either 
	- predictive text is turned on (press settings wheel on virtual keyboard - select XT9 predictive text)
	- or with 3x4 keyboard enabled
There might be other cases as well, but with these settings, it's always reproducable on the devices and emulators I've tested.

1. Getting text from QLineEdit with more than 1 word fails occationally. Not all words are included. 
2. Clearing text in QLineEdit fails occationally. Not all text is cleared.
3. If some text is not cleared in the QLineEdit, tapping the QLineEdit does not trigger virtual keyboard. Then it's not possible to manually clear the field either. If selecting one of the linedits cleared correctly, the virtual keyboard is shown, and then the erroneous lineedit is cleared on next click.

The error is present both in alpha 3 and alpha 4.

(Might be related to https://bugs.kde.org/show_bug.cgi?id=304230 although I don't really understand what that issue is all about.)

Reproducible: Always

Steps to Reproduce:
1.Set predictive text 
2.Use the virtual keyboard to set some multiple word text in some QLineEdits
3.Get the text from lineedits
4.Clear the lineedits


Actual Results:  
Some words are missing when getting the text. 
The same words are not cleared. 
Virtual keyboard does not appear if clicking on a non-cleared QLineEdit.

Expected Results:  
Get all text. 
Clear all QLineEdits.
Virtual keyboard appears as normal afterwards.

Our users loose data due to this malfunction. Our support team gives them the workaround which is to turn off the predictive text in virtual keyboard. This however affects other apps as well.
Comment 1 tomaslov 2012-10-02 20:17:33 UTC
Created attachment 74306 [details]
Test application

Test application for easily replicate the bug.
Comment 2 tomaslov 2012-10-02 20:19:49 UTC
Created attachment 74307 [details]
Illustrating images
Comment 3 BogDan Vatra 2012-10-05 06:14:13 UTC

*** This bug has been marked as a duplicate of bug 307443 ***
Comment 4 tomaslov 2012-12-11 13:05:13 UTC
Reopened, as the patch proposed for 307443 had no effect on QLineEdit and QTextEdit behavior.
Comment 5 Sebastian 2013-02-06 16:38:02 UTC
Workaround: disable predictive Text for your QWidgets like explained here: https://bugs.kde.org/show_bug.cgi?id=313212
Comment 6 Andrew Crouthamel 2018-09-04 16:15:19 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug.