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

TextField - blinking cursor can vanish for certain x values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.1
    • Quick: Controls 2
    • None
    • Windows 11 23H2 (Build 22631.3593)
      cmake 3.29.2
      ninja 1.11.0
      Visual Studio 17.9.6
    • Windows

    Description

      This issue reproduces for me only on 1920x1080 @ 100%, on my default resolution of 4k@150% it works.

      The following example shows the problem.

      Window {
          visible: true
          height: 600
          width: 800
          Column{
              Repeater{
                  model: 10
                  TextField{
                      x: 0.1 * index
                      onXChanged: console.log( index + ": x = " + x )
                  }
              }
          }
      }
      

      Textfield 1-5 and 7-10 are ok. If you click into them the cursor is visible.
      Textfield 6 has no cursor if it has focus.

      I do not try to pick dumb values that break my program, but this happened "natural" with TextField´s inside of a Grid in a Dialog.
      The Dialog was positioned centered on the screen and because of that I think it ended up on "x = *.5" .

      Might have something to do with: https://bugreports.qt.io/browse/QTBUG-77663 ?

      Attachments

        1. test.qml
          0.2 kB
        2. Issue10176.mp4
          44 kB
        3. Issue10176.gif
          Issue10176.gif
          102 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
              Marscho Marscho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes