Hi anda_skoa,
Thanks for the suggestion. But I'm facing a small problem
Here's the way I set the height in the TabView
height: {
var height
console.log("$$$$$$$$$$$$$$$$$$ Current Index " + currentIndex)
console.log("$$$$$$$$$$$$$$$$$$ Tab at index " + getTab(currentIndex))
height = getTab(currentIndex).childrenRect.height + 40
console.log("$$$$$$$$$$$$$$$$$ Final height" + height)
return height
}
height: {
var height
console.log("$$$$$$$$$$$$$$$$$$ Current Index " + currentIndex)
console.log("$$$$$$$$$$$$$$$$$$ Tab at index " + getTab(currentIndex))
height = getTab(currentIndex).childrenRect.height + 40
console.log("$$$$$$$$$$$$$$$$$ Final height" + height)
return height
}
To copy to clipboard, switch view to plain text mode
Here's the output
qml: $$$$$$$$$$$$$$$$$$ Current Index 0
qml: $$$$$$$$$$$$$$$$$$ Tab at index undefined
qrc:/qml/controls/CustomTabView.qml:28: TypeError: Cannot read property 'childrenRect' of undefined
It seems the tab isn't ready at the time, is there a workaround for this problem?
Kindly advice
Bookmarks