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

QLineEdit cursor keeps blinking when moving cursor- broken again- suggested fix provided

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.2, 4.8.1
    • GUI: Look'n'Feel
    • None

    Description

      When moving the QLineEdit cursor by keeping the cursor arrow keys pressed or entering text, the cursor continues to blink, making it very hard to see how far it has moved half of the time. This works fine in QTextEdit.

      Here's the fix guys:
      in source file: qlineedit.cpp
      Bug in the following method:

      bool QLineEdit::event(QEvent *e)

      { ... }

      else if (e->type()==QEvent::KeyRelease) {
      //Bad old code
      //d->control->setCursorBlinkPeriod(QApplication::cursorFlashTime());
      //Fix
      d->control->resetCursorBlinkTimer();

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            cmaurer Clark Maurer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes