Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML TextInput slow to give up focus on Windows
Forum Updated to NodeBB v4.3 + New Features

QML TextInput slow to give up focus on Windows

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 1 Posters 321 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 Extensions
            • Unsolved