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

TextField selectByMouse flag is by default set to false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.0
    • 5.15.2, 6.0.1
    • Quick: Controls 2
    • None
    • Windows 10, Mac OS 10.15.7
    • All

    Description

      Steps to reproduce:

      1. Run sample application (code attached). 

      2. Try to select the text by mouse. 

       

      Actual: User cannot select text by mouse

      Expected: According to the documentation user should be able to select text by mouse - flag should be set to true.

       

       

      Workaround: Set the flag to true.

       

      Code:

      import QtQuick 2.9
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.3
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          TextField {
             id: name
             text: "Some text to select"
                }
      
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              lukasz.kosiorowski lukasz.kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes