Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85673

Items with visible=false still allow interaction with hidden input fields, showing text selection indicators etc (screenshots&demo attached)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.0, 5.15.1
    • None
    • Android

    Description

      See attached screenshots and qml (paste in 'new qt quick project').

      The qml creates one visible and one invisible rectangle and then flips their visibility after a second.

      The visible rectangle contains a textfield with a text and that field has focus, therefor the onscreen keyboard is shown.

      The invisible rectangle contains no textfield, just a small rectangle to help find its location.

      When visibility flips, a click/longpress on the now visible small rectangle will for example trigger the 'select all' of the text in the hidden textfield and thus show the text selection markers as well as the popup dialog to cut/copy/etc.

      It should not be possible to interact with the invisible textfield this way, nor should the keyboard stay visible when the textfield becomes invisible (the democode now hides the keyboard), obviously the textfield keeps focus even when it becomes invisible.

      Attachments

        1. demo.qml
          0.9 kB
        2. step1.png
          step1.png
          43 kB
        3. step2.png
          step2.png
          14 kB
        4. step3.png
          step3.png
          19 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jirauser24743 user-678dd (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes