How to get the page position in tabview

Description

How to get the page position in tabview ?

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

QT

What LVGL version are you using?

7.3.1

What do you want to achieve?

get the page position in tabview

What have you tried so far?

get page location

Code to reproduce

lv_obj_get_x(lv_tabview_get_tab(tabview,lv_tabview_get_tab_act(tabview)));

Screenshot and/or video

Only multiple of page width can be obtained

lv_tabview_get_tab(tabview,lv_tabview_get_tab_act(tabview))->coords.x1

I get it,hahaha

I’d suggest using lv_obj_get_coords instead of accessing coords directly; the former is less likely to break if we ever change the internal way object coordinates get stored.