Gridnav I can't apply to my scene with examples


I found that the code on the official example has one thing in common, the focused objects that need to be navigated are all direct child controls of the container object. When I tried to apply my project in the same way, I found that the object I needed to focus on was deep in multiple objects and could not be used.

What MCU/Processor/Board and compiler are you using?

edk2 Emulator

What LVGL version are you using?


What do you want to achieve?

Controls deeply focusable child objects

What have you tried so far?

No other attempts have been made, no ideas.

Screenshot and/or video

I need to navigate all the actionable objects in this interface, the big box on the right is a lv_obj_t likened to a, a has three lv_obj_t objects, three lv_obj_t objects have a switch and label, the object I need to focus on is the switch inside, but I don’t know how to use lv_gridnav_add and lv_group_add_obj to achieve my request.