Native Copy/Paste, text selection in TextEdit at the Android
-
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??
-
Hi, please take a look at the bugreport and workarounds mentioned here:
https://bugreports.qt-project.org/browse/QTBUG-34867 -
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 :)) -
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. -
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.. -
O_o realy?? tomorow i'll test it, tnx a lot :)