[Interest] Android: Underlined text in text edit not showing up in .text property

ekke ekke at ekkes-corner.org
Fri Jul 29 16:56:54 CEST 2016


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 at qt-project.org
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160729/17982a20/attachment.html>


More information about the Interest mailing list