Native Copy/Paste, text selection in TextEdit at the Android
-
wrote on 11 Dec 2014, 10:42 last edited by
Hello, how can i use native for android copy/paste menu and native text selection, like this:
!http://i.stack.imgur.com/KV0Sy.png(Screen)!
is it possible to use in QML TextEdit, TextInput components??
-
wrote on 14 Dec 2014, 21:41 last edited by
Hi, please take a look at the bugreport and workarounds mentioned here:
https://bugreports.qt-project.org/browse/QTBUG-34867 -
wrote on 15 Dec 2014, 11:02 last edited by
tnx a lot tomasl 4 answer,
i saw this bug, and even try to use TextInputWithHandles at the 5.4, but at my device it doesn't work, will be w8 next release, hope it will be fixed and our customer not fire us before :)) -
wrote on 15 Dec 2014, 11:44 last edited by
Did you see my comment in the bugreport? This works fine for me in Qt 5.4 final:
Changing \qml\QtQuick\Controls\Private\EditMenu.qml from loading nothing on Android to loading "EditMenu_ios.qml" seems to work very well. Both selection handles, cursor and a popup context menu for copy/cut/paste/select/select all works fine in TextField and TextArea. -
wrote on 16 Dec 2014, 09:46 last edited by
tomasl
I try to change EditMenu.qml as you say to:
@source: Qt.resolvedUrl(Qt.platform.os === "ios" ? "EditMenu_ios.qml"
: Qt.platform.os === "android" ? "EditMenu_ios.qml" : "EditMenu_base.qml")@and use:
@import QtQuick.Controls.Private 1.0
...
-TextInput- to TextInputWithHandles@but get next warinngs:
@file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/EditMenu_ios.qml:101: TypeError: Cannot read property 'menu' of null[EditMenu_ios.qml:101]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/TextInputWithHandles.qml:169: TypeError: Cannot call method 'mapFromItem' of null[TextInputWithHandles.qml:169]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/TextInputWithHandles.qml:147: TypeError: Cannot read property of null[TextInputWithHandles.qml:147]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/TextInputWithHandles.qml:143: TypeError: Cannot call method 'mapFromItem' of null[TextInputWithHandles.qml:143]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/EditMenu_ios.qml:118: TypeError: Cannot read property 'menu' of null[EditMenu_ios.qml:118]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/EditMenu_ios.qml:169: TypeError: Cannot read property 'menu' of null[EditMenu_ios.qml:169]
file:///data/data/com.eshta.chat/qt-reserved-files/qml/QtQuick/Controls/Private/EditMenu_ios.qml:101: TypeError: Cannot read property 'menu' of null[EditMenu_ios.qml:101]@
etc.. -
wrote on 22 Dec 2014, 10:07 last edited by
Maxim,
I did not import the private controls, just used regular TextField from controls (Not TextInput or TextInputWithHandles).Tomas
-
wrote on 22 Dec 2014, 21:42 last edited by
O_o realy?? tomorow i'll test it, tnx a lot :)
1/7