Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qml TextArea and TextEdit can not support copy,cut,choose when you touch it in Android

Qml TextArea and TextEdit can not support copy,cut,choose when you touch it in Android

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 3 Posters 3.7k Views
  • 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.
  • G Offline
    G Offline
    galaxyHu
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • G galaxyHu

      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

      R Offline
      R Offline
      Roumed
      wrote on last edited by
      #2

      @galaxyHu
      Version of Qt?
      Version of QtQuick.Controls?
      Version of Android?

      How do you build for Android?

      How do you call these methods?

      G 1 Reply Last reply
      0
      • G Offline
        G Offline
        galaxyHu
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • R Roumed

          @galaxyHu
          Version of Qt?
          Version of QtQuick.Controls?
          Version of Android?

          How do you build for Android?

          How do you call these methods?

          G Offline
          G Offline
          galaxyHu
          wrote on last edited by
          #4

          @Roumed

          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!

          R 1 Reply Last reply
          0
          • LorenzL Offline
            LorenzL Offline
            Lorenz
            wrote on last edited by
            #5

            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

            Developer @ V-Play Engine - http://v-play.net/qt

            V-Play simplifies

            • Game Development with Qt
            • Mobile App Dev with Qt esp. iOS & Android

            What others say
            V-Play scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

            R 1 Reply Last reply
            0
            • G galaxyHu

              @Roumed

              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!

              R Offline
              R Offline
              Roumed
              wrote on last edited by
              #6

              @galaxyHu
              So, if i understand you right, you know about copy , cut , paste at TextEdit component, but you have a problem about context menu on "press-and-hold" with controls for these methods?

              G 1 Reply Last reply
              0
              • LorenzL Lorenz

                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

                R Offline
                R Offline
                Roumed
                wrote on last edited by
                #7

                @Lorenz
                This quote from Qt GUI.
                Do you think, that this update will be for QtQuick too?

                1 Reply Last reply
                0
                • R Roumed

                  @galaxyHu
                  So, if i understand you right, you know about copy , cut , paste at TextEdit component, but you have a problem about context menu on "press-and-hold" with controls for these methods?

                  G Offline
                  G Offline
                  galaxyHu
                  wrote on last edited by
                  #8

                  @Roumed
                  yes, all right,do you have some methods for this?

                  R 1 Reply Last reply
                  0
                  • G galaxyHu

                    @Roumed
                    yes, all right,do you have some methods for this?

                    R Offline
                    R Offline
                    Roumed
                    wrote on last edited by
                    #9

                    @galaxyHu

                    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.

                    G 1 Reply Last reply
                    0
                    • R Roumed

                      @galaxyHu

                      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.

                      G Offline
                      G Offline
                      galaxyHu
                      wrote on last edited by
                      #10

                      @Roumed
                      Thank you very much, I will learn from the TextInputWithHandles.

                      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 Extensions
                      • Unsolved