Qml TextArea and TextEdit can not support copy,cut,choose when you touch it in Android
-
Qml TextArea and TextEdit can not support some common functions,such as copy,cut,paste and so on,How can I solve it in Android
-
Version of Qt: Qt5.7.0
whatever version of QtQuick.Controls ,I just want to use TextEdit to achieve the result like that ,when I touchAndHold the input area , it can diaplay the options , such as copy,cut,choose and so on.
when I use java program to develop android, the input widget has these functions by themself!
//your code here -
@galaxyHu
Version of Qt?
Version of QtQuick.Controls?
Version of Android?How do you build for Android?
How do you call these methods?
Version of Qt: Qt5.7.0
whatever version of QtQuick.Controls ,I just want to use TextEdit to achieve the result like that ,when I touchAndHold the input area , it can diaplay the options , such as copy,cut,choose and so on.
when I use java program to develop android, the input widget has these functions by themself! -
Version of Qt: Qt5.7.0
whatever version of QtQuick.Controls ,I just want to use TextEdit to achieve the result like that ,when I touchAndHold the input area , it can diaplay the options , such as copy,cut,choose and so on.
when I use java program to develop android, the input widget has these functions by themself! -
Hi,
I think this is part of Qt 5.8, see here
Selection handles on Android, with edit menu for copy/paste)
So I'd suggest you try building your project with the 5.8 RC (or wait for the official release next week).
Cheers,
Lorenz -
-
The only method that i know is to customize controls or to make a wrapper for TextEdit.
Also , i advice you to look at the TextInputWithHandles (qtquickcontrols/src/controls/Private/TextInputWithHandles.qml) component from Controls 1.0 - you will have some good ideas. -
The only method that i know is to customize controls or to make a wrapper for TextEdit.
Also , i advice you to look at the TextInputWithHandles (qtquickcontrols/src/controls/Private/TextInputWithHandles.qml) component from Controls 1.0 - you will have some good ideas.