Android iOS: cut copy paste selection handle WORKS GREAT if...
-
... setting selectByMouse to true
thx Sacha Zyto's comment QTBUG-34867
now I'm getting all the handles to select, cut, copy paste Text on Android and iOS :)the little trick:
selectByMouse: true
gives you all these options.
Android
selectByMouse: false- TAP: shows one handle to change the position
- DOUBLE TAP: same
selectByMouse: true
- TAP: shows one handle to change the position
- DOUBLE TAP: selects the word where you double-tapped, shows 2 handles you can use to change selection and shows on top of Page Menu to select all, cut, copy, paste
iOS
selectByMouse: false- TAP and HOLD: move cursor and shows Select / Select All, Paste above cursor
- DOUBLE TAP: nothing
selectByMouse: true
- TAP and HOLD: move cursor and shows Select / Select All, Paste above cursor
- DOUBLE TAP: selects the word where you double-tapped, shows 2 handles you can use to change selection and long press on selection gives cut, copy, paste, delete
tested on QtQuickControls2 TextField and TextArea
Android 6, iOS 10.2.1
Qt 5.8 -
@ekkescorner Could you maybe try again if you could reproduce this two issues https://bugreports.qt.io/browse/QTBUG-57031 and https://bugreports.qt.io/browse/QTBUG-56939 with Android 6? Unfortunately I do not have a device with Android 6 at the moment. During my tests with Android 4 I had the
selectByMouse
property set, so maybe that's the difference? -
@Schluchti 57031:
Handles disappearImportant: you must be sure to remove the Focus from textField
otherwise the Handle still is there
so it's a bug, but you know the workaround ;-) -
@Schluchti 56939:
TextField, selectByMouse:true
double-tapped, word selected 2 selection handles visiblesuspended app
re-openedselection handles still visible
so this works for me (5.8, QQC 2.1, Android 6.0.1)
-
@ekkescorner Many thanks for re-testing! I think I should give Qt 5.8.0 another chance :)
-
@Schluchti said in Android iOS: cut copy paste selection handle WORKS GREAT if...:
@ekkescorner Many thanks for re-testing! I think I should give Qt 5.8.0 another chance :)
do it - really recommended
from my blog post you know what can happen and HowTo solve / workaround ;-)
I didn't found any blockers yet while customers are testingjust updated all my TextField and TextArea in all projects to enable the double-tap text selection and will publish this on monday to all my BetaTesters.
if something went wrong we'll know soon -
@ekkescorner Really cool!
Would be great, if you could let me know if the beta testers report any issues regarding the selection handles on Android :)
-
@Schluchti said in Android iOS: cut copy paste selection handle WORKS GREAT if...:
@ekkescorner Really cool!
Would be great, if you could let me know if the beta testers report any issues regarding the selection handles on Android :)
of course I would report it here.
-
@ekkescorner @jpnurmi reminds me that there's a problem if you're using multi-line Text inside Flickable.
just tested.
He's right: as long as the TextArea has focus if you try to scroll the selection will be changed instead of scrolling the page.
If you're outside the field scrolling works wellI'll create a bugreport on this soon.
my workaround: I'm placing a small button (w icon) besides the field to toggle word-selection-mode. just tested. this works.In most cases my TextFields are single line text where selection works well so I can live with this.