Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android iOS: cut copy paste selection handle WORKS GREAT if...

Android iOS: cut copy paste selection handle WORKS GREAT if...

Scheduled Pinned Locked Moved Mobile and Embedded
androidiostext selectionqqc2
9 Posts 2 Posters 4.2k 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.
  • E Offline
    E Offline
    ekkescorner
    Qt Champions 2016
    wrote on 18 Mar 2017, 14:26 last edited by ekkescorner
    #1

    ... 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

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
    5.15 --> 6.8 https://t1p.de/ekkeChecklist
    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

    1 Reply Last reply
    2
    • S Offline
      S Offline
      Schluchti
      wrote on 18 Mar 2017, 16:45 last edited by Schluchti
      #2

      @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?

      Want to read more about Qt?

      https://gympulsr.com/blog/qt/

      Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

      E 2 Replies Last reply 18 Mar 2017, 16:59
      0
      • S Schluchti
        18 Mar 2017, 16:45

        @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?

        E Offline
        E Offline
        ekkescorner
        Qt Champions 2016
        wrote on 18 Mar 2017, 16:59 last edited by
        #3

        @Schluchti 57031:
        Handles disappear

        Important: 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 ;-)

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.8 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        1 Reply Last reply
        2
        • S Schluchti
          18 Mar 2017, 16:45

          @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?

          E Offline
          E Offline
          ekkescorner
          Qt Champions 2016
          wrote on 18 Mar 2017, 17:17 last edited by
          #4

          @Schluchti 56939:

          TextField, selectByMouse:true
          double-tapped, word selected 2 selection handles visible

          suspended app
          re-opened

          selection handles still visible

          so this works for me (5.8, QQC 2.1, Android 6.0.1)

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          1
          • S Offline
            S Offline
            Schluchti
            wrote on 18 Mar 2017, 17:21 last edited by
            #5

            @ekkescorner Many thanks for re-testing! I think I should give Qt 5.8.0 another chance :)

            Want to read more about Qt?

            https://gympulsr.com/blog/qt/

            Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

            E 1 Reply Last reply 18 Mar 2017, 17:26
            0
            • S Schluchti
              18 Mar 2017, 17:21

              @ekkescorner Many thanks for re-testing! I think I should give Qt 5.8.0 another chance :)

              E Offline
              E Offline
              ekkescorner
              Qt Champions 2016
              wrote on 18 Mar 2017, 17:26 last edited by
              #6

              @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 testing

              just 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

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              S 1 Reply Last reply 18 Mar 2017, 17:29
              0
              • E ekkescorner
                18 Mar 2017, 17:26

                @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 testing

                just 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

                S Offline
                S Offline
                Schluchti
                wrote on 18 Mar 2017, 17:29 last edited by
                #7

                @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 :)

                Want to read more about Qt?

                https://gympulsr.com/blog/qt/

                Latest Article: https://gympulsr.com/blog/qt/2017/06/14/ios-background-music-qt.html

                E 1 Reply Last reply 18 Mar 2017, 17:34
                0
                • S Schluchti
                  18 Mar 2017, 17:29

                  @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 :)

                  E Offline
                  E Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on 18 Mar 2017, 17:34 last edited by
                  #8

                  @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.

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.8 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  E 1 Reply Last reply 19 Mar 2017, 08:59
                  0
                  • E ekkescorner
                    18 Mar 2017, 17:34

                    @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.

                    E Offline
                    E Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on 19 Mar 2017, 08:59 last edited by
                    #9

                    @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 well

                    I'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.

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                    5.15 --> 6.8 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    1 Reply Last reply
                    1

                    1/9

                    18 Mar 2017, 14:26

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved