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

Unify TextInput/TextField and TextEdit/TextArea cursors

    XMLWordPrintable

Details

    • Linux/X11

    Description

      https://bugreports.qt.io/browse/QTBUG-57446 solved the IBeam cursor problem for Controls 2 but it should have been added to TextInput because now it's inconsistent with TextEdit which uses the IBeam cursor by default after https://bugreports.qt.io/browse/QTBUG-50482. Alternatively, getting rid of TextEdit's IBeam cursor might also fix the problem because it seems to be duplicated by TextArea.

      There is also an issue where TextField and TextArea introduce a noticeable selection delay on mouse or touch platforms when selectByMouse is enabled. This is because of how they intercept and delay press events. Here is a reproducible example:

      Edit: It turns out the second problem is a duplicate of https://bugreports.qt.io/browse/QTBUG-72285.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          visible: true
      
          Column {
              TextField {
                  width: 200
                  height: 32
                  selectByMouse: true
                  text: "Bad"
              }
              TextArea {
                  width: 200
                  height: 200
                  selectByMouse: true
                  text: "Bad"
              }
              TextInput {
                  width: 200
                  height: 32
                  selectByMouse: true
                  text: "Good"
              }
              TextEdit {
                  width: 200
                  height: 200
                  selectByMouse: true
                  text: "Good"
              }
          }
      }
      

      Attachments

        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
            jeremykim232323 Jeremy Kim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes