Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. I have problems with the TextField
Qt 6.12 LTS is out! See what's new in the release blog

I have problems with the TextField

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 1.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BlasterB Offline
    BlasterB Offline
    Blaster
    wrote on last edited by Blaster
    #1

    Greetings .. a few days ago I am trying to enable the copy / paste menu of the android system when I press and hold on a text field on Android, but nothing comes out.
    Can someone help me with this? How to make at least the paste menu?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stcorp
      wrote on last edited by
      #2

      Have you tried setting the selectByMouse property of TextField to true?

      BlasterB 1 Reply Last reply
      0
      • S stcorp

        Have you tried setting the selectByMouse property of TextField to true?

        BlasterB Offline
        BlasterB Offline
        Blaster
        wrote on last edited by
        #3

        @stcorp Yes, I have tried that, but it does not work. Also, it's on android, I forgot to put it up, I'm sorry

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stcorp
          wrote on last edited by
          #4

          Ok, I did a little bit of testing, and it seems that under Qt 5.7 I can't get the copy/paste menu to show up. If I use Qt 5.9, it will work, but instead of pressing and holding, you have to double tap some text inside the TextField (and make sure selectByMouse is set to true), and then the Android copy/paste menu will show up. However, I can't get the copy/paste menu to show up when there is no text in the TextField, which is kind of strange.

          Pablo J. RoginaP 1 Reply Last reply
          0
          • S stcorp

            Ok, I did a little bit of testing, and it seems that under Qt 5.7 I can't get the copy/paste menu to show up. If I use Qt 5.9, it will work, but instead of pressing and holding, you have to double tap some text inside the TextField (and make sure selectByMouse is set to true), and then the Android copy/paste menu will show up. However, I can't get the copy/paste menu to show up when there is no text in the TextField, which is kind of strange.

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @stcorp if your issue is solved, please don't forget to mark it as such. Thanks.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt
            • Unsolved