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

QLineEdit's blinking cursor disappears when deleting all selected content

    XMLWordPrintable

    Details

      Description

      -Fire up QtCreator 2.0.1
      -transfer focus to a line edit, e.g. the Find line edit
      -enter some content (e.g. "blah")
      -select all
      -delete

      While focus is still on the line edit and typing will enter content, the line edit blinking cursor will not be shown until you transfer focus to another widget and then back again. This does not seem to occur if you delete a subset of the content, only when deleting all content in the line edit. What is also strange is if you subclass QLineEdit (or setup a signal slot connection to monitor the cursor position) you'll find that in the above scenario the cursor position is 0, it's just not visible or blinking. Odd. I notice this with my own app and Qt4.6.3 as well.

        Attachments

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

          Activity

            People

            Assignee:
            pamatila Pasi Matilainen (Inactive)
            Reporter:
            wstokes Will Stokes
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes