Cannot copy / paste text on existing feature's text fields
What is the bug or the crash? What were your expectations and what actually happened?
When editing text on an existing feature attempting to copy or paste by doing a long press deactivates the text field and it is not possible to copy or paste text. If the text field is preceeded by other fields there is a little bounce of the dialog as the field is loses focus and the form scrolls up a little.
When editing text of a new feature neither problems occurs.
The following video illustrates the point - https://photos.app.goo.gl/xJycgeKqMaBehL4K9 I first demonstrate copying and pasting text with a new feature and then attempt to repeat the exercise using an existing feature. The features are standard geopackage layers.
Apologies for the background noise. I'm not on a toilet. It's a fishtank next to me. :-)
Steps to reproduce the issue
Edit point layer that has text fields. Select existing point for editing. Attempt to copy / paste in text fields. If text field is not at the top of the attribute form, the form moves upwards when the field loses focus.
With the project attached, the points layer is called 'things' and has two text fields called 'what' and 'sure'. The data is in the UK: Epsom, south of London, EPSG:3857.
Version
3.6.4
Operating system name
Android
Operating system version
13
Reinstall QField
- [x] I have a fresh install of the latest QField version, but the problem persists.
- [x] Problem can be reliably reproduced, doesn't happen randomly.
- [x] Problem happens with all files and projects, not only some files or projects.
Additional context
No response
@coastalrocket , hey there. This is a known issue in upstream Qt's handling of text fields in QML scenes on Android. We're hoping it'll be fixed one day, but for the time being, we implemented a workaround by adding copy/paste shortcuts when editing a feature in the 3-dot menu here:
Thanks @nirvn
Our users are also reporting the same issue on iOS 18.5.
Do you have a link to the QT issue that this stems from?
It is odd that the issue doesn't appear with a new form. Are there any differences between the two?
Android 13: I found that doing a single tap followed by a long press will bring up the clipboard dialog.
iOS 18.5: The clipboard doesn't appear unless the cursor is at the beginning of the text field. Holding down at the beginning of a text field brings up the magnifying tool. Moving the finger and then releasing will move the cursor to a new position in the text string and the clipboard dialog will appear. The magnifying tool / clipboard is not invoked unless the cursor is at the beginning of the text field.
I'm going to close this issue as I can no longer reproduce it on Android 11 with QField 3.7.7. I'll raise a new issue just for iOS.