I wanted the tabview height to be based on the sum of the children rect.
Eg: tab1 has height of 24(one label of height 24), so when tab1 is selected the tabview height should be 24
however when tab2 has 3 labels each of height 24, so when tab2 is selected the tabview height should be 72.
Here's a sample code
TabView {
Tab {
title: "tab1"
RowLayout {
Text {
text: "Text1"
}
}
}
Tab {
title: "tab2"
RowLayout {
Text {
text: "Text1"
}
Text {
text: "Text2"
}
Text {
text: "Text3"
}
}
}
}
TabView {
Tab {
title: "tab1"
RowLayout {
Text {
text: "Text1"
}
}
}
Tab {
title: "tab2"
RowLayout {
Text {
text: "Text1"
}
Text {
text: "Text2"
}
Text {
text: "Text3"
}
}
}
}
To copy to clipboard, switch view to plain text mode
Kindly advice how to achieve this
Bookmarks