Solved Problem with assigning the focus property
@J-Hilk @raven-worx @dheerendra
I 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?
J.Hilk Moderators last edited by
@anita if you simply write
focus:truethen that means, this item will have the focus, within the enclosing focusScope.
Active focus is for example, gained by calling
Thank You for the answer.