From my experience, the text won’t match what’s on the screen when the 
keyboards use predictive completion.


> On 29 Jul 2016, at 17:07, Jason H <jh...@gmx.com> wrote:
> 
> I'm 99% sure this is an inconsistency in Android keyboards. The Samsung has a 
> Samsung Keyboard.
> On a whim I installed the Google keyboard (now available in app store for all 
> devices) and it behaves as you describe.
>  
> The take-away: I think it is important for other Android app developers to 
> note that the displayText is the field to use, as text may not match what's 
> on the screen for some keyboards.
>  
> Sent: Friday, July 29, 2016 at 10:56 AM
> From: ekke <e...@ekkes-corner.org>
> To: interest@qt-project.org
> Subject: Re: [Interest] Android: Underlined text in text edit not showing up 
> in .text property
> Am 29.07.16 um 16:12 schrieb Jason H:
> I've got a Samsung Alpha (stock) that as I type, the text property is not 
> being updated.
> I initialized a TextInput (below, comments in []) and backspaced over it, it 
> gets the updates correctly. But when I start typing, anything not recognized 
> by the keyboard is underlined in the text edit and does not appear until I 
> end that word with a space or punctuation. I am concerned that my users will 
> perform an action thinking that that underlined word is part of what will be 
> acted on, when it will not. 
> 
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a line
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is a
> qrc:/main.qml:308 (onTextChanged): qml: text:  this is
> qrc:/main.qml:308 (onTextChanged): qml: text:  th
> qrc:/main.qml:308 (onTextChanged): qml: text:         [showing _gdhdhd_]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [appeared completely 
> after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd [showing _hdhd_ in the 
> TextInput]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [appeared 
> completely after space]
> qrc:/main.qml:308 (onTextChanged): qml: text:  gdhdhd hdhd [showing _fg_ in 
> the TextInput]
> 
> How can I get the entire text?
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org <x-msg://6/Interest@qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest 
> <http://lists.qt-project.org/mailman/listinfo/interest>
> 
> hmmm
> 
> just did a test:
> 
> TextField {
>     id: remarksTextField
>     focus: true
>     anchors.fill: parent
>     topPadding: 6
>     leftPadding: 6
>     wrapMode: Text.WordWrap
>     placeholderText: qsTr("Remarks, Hints, Description")
>     text: order.remarks
> }
> 
> entering text into TextField: this is a line
> 
> went out, come back
> 
> now backspace characters
> 
> then enter gdhdhd - all appears immediately
> 
> works from virtual keyboard and physical keyboard (Device is a Slider)
> 
> QtQuickControls 2, Qt 5.7
> Android 6.0.1
> BlackBerry PRIV
>  
> --
> ekke
> _______________________________________________ Interest mailing list 
> Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest 
> <http://lists.qt-project.org/mailman/listinfo/interest>_______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to