QML set tab property from outside
-
I need to set tabview tab item property from outside tab, but below giving me the error. where
CustomItemis a custom qml component.Rectangle { id: main_background TabView { id: setting_tab Tab { CustomItem{ id: customId indexofitem: -1 } } } //this function call from another qml function changeIndex(idx){ customId.indexofitem = idx } } -
I need to set tabview tab item property from outside tab, but below giving me the error. where
CustomItemis a custom qml component.Rectangle { id: main_background TabView { id: setting_tab Tab { CustomItem{ id: customId indexofitem: -1 } } } //this function call from another qml function changeIndex(idx){ customId.indexofitem = idx } }