Version: unspecified (using Devel) OS: Linux After typing in a name in the new contact dialogue if the user tries to enter an email address the characters are typed in the Name line edit whatever the user tries (Enter, down arrow on the keyboard or clicking with the pen in the email line edit) Reproducible: Always Steps to Reproduce: - Launch KAB-mobile - Click on 'New Contact' button - Enter your name in the 'Name' line edit - Click in the 'E-Mail' line edit with the N900 plastic pen - Enter you email address Actual Results: The email address is added to the name in the 'Name' line edit Expected Results: whereas it should be entered in the 'E-Mail' line edit since the cursor is there.
Hej, selecting the email lineedit in kab-mobile on the desktop works fine, so it must be an issue of Qt on N900 -> reassigned to Artur. Ciao, Tobias
I'm investigating this. It seems a focus issue with QWidgets on QML (QGV). It's not dealing properly with these two kinds of focus (QWidgets and QGraphicWidgets).
Created attachment 48497 [details] qgraphicsproxywidget + qlineedit focus bug It seems caused by a QGraphicsProxyWidget bug. In the attached code there is a small test containing 2 QLineEdits placed in proxy widgets. Running it on N900, the bug appears after some focus switches between the line edits. Reproduced with both Qt 4.6 and 4.7.
I forgot to mention in comment #3, the version of Qt 4.7 experimental packages used were ~git20100628
This bug is easily reproducible on scratchbox x86 with the above example (from comment #3). The trick is to click the area around those widgets (it's an invisible qgraphicswidget). Created JIRA task for this Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-11861 Besides being an "upstream" bug, we'll leave this one open so we can keep testing this for the Qt guys (we are also helping them to fix the issue).
*** Bug 242811 has been marked as a duplicate of this bug. ***
QTBUG-11861 (see comment #5) is now fixed and the correspondent patch is already available in x11-maemo clone on gitorious. Tests with the example from comment #3 confirm the issue is fixed. Now regarding kaddressbook-mobile tests. With the mentioned fix, it is possible to type in other line edits than the first one =). However, there are situations when the bug reappears, mostly related with the word completion feature available on Maemo 5. Once it enters in action, the focus bug shows up. When word completion is off (check Maemo Settings -> Text Input) the bug seems not reproducible. For those interested, there is a tar.gz with Qt 4.7 + bug fix available at [1]. Probably the next libqt4-experimental will include this fix. [1] http://anselmolsm.org/public/qt/47/libqt47-declarative-armel.tar.gz - remember to adjust LD_LIBRARY_PATH accordingly.
Created attachment 48542 [details] ProxyWidget with two line edits This attachment shows the new focus bug regarding two widgets inside the same proxy widget. The proxy widget is not calling the inputContext->reset() method when it looses focus.
Bug fixed on Qt. Already available in public repository: http://qt.gitorious.org/qt/x11-maemo/commit/255bca57212e99219094312024b604ca5bca25cc Input should be working now on all KDEPIM mobile applications.
It is corrected now. It is possible to type information in the different line edits now using the plastic pen. Tested on N900, Rev 20100721.1152530