Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Should KeyNavigation.priority behavior depend on where it is in the QML?
Rolias last edited by
I'm just trying to figure out some things so I have two rectangles and you move between them with up arrow and down arrow. Works fine. I also have an onPressed handler that prints what key is pressed in the rectangle. If I add
and have that line before the Keys.onPressed handler then the navigation key moves between the rectangles and the key is not printed. If I move the KeyNavigation.priority after the onPressed handler then the key is printed. Is this how it's supposed to behave? I would have thought in a declarative language like QML this type of ordering wouldn't be relevant. I don't want to report a bug if this is working as designed.