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
Qt Code:
  1. TabView {
  2. Tab {
  3. title: "tab1"
  4.  
  5. RowLayout {
  6. Text {
  7. text: "Text1"
  8. }
  9. }
  10. }
  11. Tab {
  12. title: "tab2"
  13.  
  14. RowLayout {
  15. Text {
  16. text: "Text1"
  17. }
  18. Text {
  19. text: "Text2"
  20. }
  21. Text {
  22. text: "Text3"
  23. }
  24. }
  25. }
  26. }
To copy to clipboard, switch view to plain text mode 

Kindly advice how to achieve this