Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML TextInput slow to give up focus on Windows
Qt 6.12 LTS is out! See what's new in the release blog

QML TextInput slow to give up focus on Windows

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 1 Posters 854 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.
  • P Offline
    P Offline
    poncho524
    wrote on last edited by
    #1

    I have a form with a TextInput and a button. if i type into the TextInput and try clicking the button, the button doesn't respond right away. After entering text into the input field, i need to wait at least 1 second before i can click the button.

    This only appears to be a problem in windows. I am not doing any validation or any extra processing. this is strictly QML only.

    Anyone else able to confirm or deny?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poncho524
      wrote on last edited by
      #2

      real simple case:
      just start clicking on the button as soon as you enter text in the input

      import QtQuick 2.15
      import QtQuick.Controls 2.12
      
      Item {
      
          TextInput {
              id: textInput
              width: 100
              height: 30
          }
      
          Button {
              anchors.top: textInput.bottom
              height: 50
              width: 100
              text: "here"
      
              onPressed: {
                  console.log("click");
              }
          }
      
      }
      
      1 Reply Last reply
      0
      • P Offline
        P Offline
        poncho524
        wrote on last edited by
        #3

        and its almost exactly 1 second delay

        1 Reply Last reply
        0
        • P Offline
          P Offline
          poncho524
          wrote on last edited by
          #4

          5.15.0 on windows

          1 Reply Last reply
          0
          • P Offline
            P Offline
            poncho524
            wrote on last edited by
            #5

            Ends up this is a Windows problem. any keyboard input delays mouse input for 1 second. i have no clue how to turn it off, but there it is.

            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
            • Unsolved