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. QML: signal on get focus
Qt 6.11 is out! See what's new in the release blog

QML: signal on get focus

Scheduled Pinned Locked Moved General and Desktop
focus signal qm
2 Posts 1 Posters 1.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.
  • L Offline
    L Offline
    louis
    wrote on last edited by
    #1

    Hi,

    i know the Signal activeFocusChanged() will raise when Focus canged. The Item that uses onActiveFocusChanged() will only see changes when Focus already is on it and the Focus changes to another item.
    i need to do stuff when my item gets the Focus, so is there Signal i can use like onFocusGot or something?

    I would be realy happy if i dont need a Workaround on this because else i always have to call my function on Events like

    Keys.onRightPressed: forwardButton.forceActiveFocus(), focusItemChanged(forwardButton)

    and this is really much typing

    1 Reply Last reply
    0
    • L Offline
      L Offline
      louis
      wrote on last edited by
      #2

      When an item has Focus. my Cursor will Change to visible. so i created a Signal "focusGained(Item root)" that will Show up cursor{ onVisibleChanged}

      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