I am using Qt 5.5.1 Opensource
on Ubuntu 14.40 LTS 64bit
and working on app for Samsung Galaxy Tab 3 10.1
running Android 4.2.2
. and I have following testing TextField
:
TextField
{
width: 384
height: 128
placeholderText: qsTr("Android Virtual Keyboard does not pop up")
focus: true
onTextChanged:
{
print("Text changed");
} // onTextChanged
MouseArea
{
anchors.fill: parent
onClicked:
{
print("clicked");
forceActiveFocus(Qt.MouseFocusReason);
Qt.inputMethod.show();
} // onClicked
} // MouseArea
} // TextField
Now, once the focus is of this component is gained - the user selects it on touch screen, message "clicked" is printed on debug console, which is ok, but Android keyboard
is not showed so the user cannot enter anytext into it.
Why?
and
Does someone has better experience using TextEdit
or even TextArea
, I have personally preferred TextField
so far because of TextField
's placeholderText
property? I use several TextField
components for entering database connection setup.