[Interest] TextEdit and virtual keyboard
Cezar Menezes
cezar at hxgt.com.br
Mon Mar 31 03:14:31 CEST 2014
I believe TextEdit already launches the virtual keyboard when it receives the focus.
Try setting the "z" parameter as 1 to put the TextInput object in foreground. Perhaps a MouseArea may be overriding the focus capture.
Example:
import QtQuick 2.0
Rectangle {
width: 320
height: 480
TextEdit {
z: 1
width: parent.width
text: "Some Text"
font.family: "Helvetica"
font.pointSize: 20
color: "blue"
wrapMode: TextEdit.WrapAnywhere
}
MouseArea {
anchors.fill: parent
onClicked: {
Qt.inputMethod.hide() ;
}
}
}
----- Original Message -----
From: "VStevenP" <vstevenpavao at yahoo.com>
To: "igor mironchik" <igor.mironchik at gmail.com>, "Alan Ezust" <alan.ezust at gmail.com>
Cc: interest at qt-project.org
Sent: Sunday, March 30, 2014 8:42:55 PM
Subject: Re: [Interest] TextEdit and virtual keyboard
As an aside, when you use a _TextInput_ on iOS, it does auto-launch the iOS soft keypad when you tap on the TextInput. Pretty convenient. Maybe TextEdit should be enhanced to work like TextInput; maybe it should auto-launch the platform-specific keypad like TextInput does.
- VStevenP
From: "igor.mironchik at gmail.com" <igor.mironchik at gmail.com>
To: Alan Ezust <alan.ezust at gmail.com>
Cc: interest at qt-project.org
Sent: Saturday, March 29, 2014 12:26 PM
Subject: Re: [Interest] TextEdit and virtual keyboard
Hi and thanks.
I’ve found the answer: qApp->inputMethod()->show();
From: Alan Ezust
Sent: Saturday, March 29, 2014 5:21 PM
To: igor.mironchik at gmail.com
Cc: interest at qt-project.org
Subject: Re: [Interest] TextEdit and virtual keyboard
There is not one that is included in Qt. You can make one. Here are some links that show how.
http://doc.qt.digia.com/QtVirtualKeyboard/qtvirtualkeyboard-enterprise-virtualkeyboard-virtualkeyboard-virtualkeyboard-qml.html
http://qt-project.org/forums/viewthread/1486
Or you can try to reuse one that was created for a specific platform, such as meego.
https://gitorious.org/qtmediahub/meegoremote/source/8e4ce80ef1338278af64265fa55dba49650070d4:qml/VirtualKeyboard.qml#L43
On Sat, Mar 29, 2014 at 5:36 AM, < igor.mironchik at gmail.com > wrote:
Hi.
I’m implementing TextEdit. And I want the virtual keyboard to be shown on tap on the widget (on mobile platforms).
What should I do for it?
Thanks.
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140330/537e17ff/attachment.html>
More information about the Interest
mailing list