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. How to set active focus to TextInput in QML page ?
QtWS25 Last Chance

How to set active focus to TextInput in QML page ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 3 Posters 12.6k Views
  • 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
    Praveen kk
    wrote on last edited by
    #1

    When the page shows i should get the active focus on the child TextInput in side the page.

    1 Reply Last reply
    1
    • patrikdP Offline
      patrikdP Offline
      patrikd
      wrote on last edited by
      #2

      hi praveen,
      try

      textInput.forceActiveFocus().
      

      best,
      patrik

      1 Reply Last reply
      4
      • M Offline
        M Offline
        morte
        wrote on last edited by morte
        #3

        Set

        focus: true
        
        1 Reply Last reply
        1

        • Login

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