Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
7 April 2020
If a component needs to handle keyboard input, then it needs to handle focus properly. Propagating and moving focus between components can be tricky in QML, as the "focus" property on an Item has a global effect. To handle the case where we may have multiple components or sub-components wanting keyboard focus at the same time, we have to limit the consequences of the "focus" property. That's precisely what the FocusScope element does.
Previous video about Keyboard Input mentioned in this part: https://www.youtube.com/watch?v=ilCekEOpNYM
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Upgrade your applications from Qt 5 to Qt 6 with KDAB’s migration services. Get a free migration assessment and join a hands-on workshop to prepare your team for a successful transition!
Learn more