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 ?
Forum Updated to NodeBB v4.3 + New Features

How to set active focus to TextInput in QML page ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 3 Posters 12.7k 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 19 Feb 2016, 06:27 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
    • P Offline
      P Offline
      patrikd
      wrote on 19 Feb 2016, 10:26 last edited by
      #2

      hi praveen,
      try

      textInput.forceActiveFocus().
      

      best,
      patrik

      1 Reply Last reply
      4
      • M Offline
        M Offline
        morte
        wrote on 20 Feb 2016, 05:52 last edited by morte
        #3

        Set

        focus: true
        
        1 Reply Last reply
        1

        1/3

        19 Feb 2016, 06:27

        • Login

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