Introduction to Qt / QML (Part 22) - FocusScope

preview_player
Показать описание
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.

About the host:
This video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

About KDAB:

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Рекомендации по теме
Комментарии
Автор

The 22 videos I've watched so far was worth the epic k-dab at the end

clintschad
Автор

I like the ending! :-) 2 days ago I know nothing about QML but now I am ready to do exercices and learn. Thank you for your videos!!

Juli
Автор

Can the subtitles be put as the plain text in the comment area? This can be useful for those recalling the info or searching for the details missed while watching videos.

Eugene-rqkr
Автор

what is the shortcut key to open GammaRay? I couldn't find option GammaRay in Tools menu bar. please!

sinhpham
Автор

Nice video as usual sir, but I have question about FocusScope, how can I use it with StackView, I can't find an answer

nasroml
Автор

Didn't you get a little confused towards the end? Mouse always works, the interesting part is if arrow keys switch focus correctly. But you use mouse to switch (active) focus.

Milan_Openfeint
Автор

These videos are awesome, please keep going! Can you talk about how to make Qml Plugin and QmlPluginLoader?

andreagenor