Solved Problem with assigning the focus property
-
Hi,
@J-Hilk @raven-worx @dheerendraI am assigning the focus for an item in a qml, by setting the focus property to true, but I am not getting any key events for that item. If I do a forceActivefocus on that item, only then the item is emitting the key events. Why doesnt the item give any key events when the focus property is set to true?
-
@anita if you simply write
focus:true
then that means, this item will have the focus, within the enclosing focusScope.Active focus is for example, gained by calling
forceActivefocus
😉 -
@J-Hilk
Thank You for the answer.