Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cursor blinking

Cursor blinking

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ecir.hana
    wrote on last edited by
    #1

    When hoding down Key_Enter in a textedit, the cursor stops blinking, turns on while key is down and when the key is released it starts to blink again.

    I'm catching Key_Enter in keyPressEvent(QKeyEvent *e) like:

    @if (e->key() == Qt::Key_Enter)
    {
    qDebug() << "Enter pressed!";
    return;
    }@

    The problem is, that even when holding down the enter key, the cursor always blinks, i.e. it wont turn on for the period of key down.

    Please, how to fix this so that it looks like regular behavior?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Have you considered to "file a bug report":https://bugreports.qt-project.org/ ? Some information (Qt version used, OS you are running on) as well as a simple test case would help.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ecir.hana
        wrote on last edited by
        #3

        Thanks for the comment but are you sure this is a bug? Qt Creator, for instance, does the blinking correctly so perhaps there is just some trick how to force the blink timer to restart on keydown..?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          I am not sure, I am not too deeply into the editor code of creator.

          If you have a small example app that demonstrates that Qt is not behaving naturally on some platform, then please report a bug. That is the only reliable way to bring something to the attention of the developers working on that particular piece of code.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ecir.hana
            wrote on last edited by
            #5

            Done. https://bugreports.qt-project.org/browse/QTBUG-30120

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved