Closed huhuang03 closed 3 years ago
After I dynamic add a TabLayout to TabWidget like this:
newPage, _ := walk.NewTabPage() newPage.SetLayout(walk.NewVBoxLayout()) label, _ := walk.NewLabel(newPage) label.SetText("T1") tabs.Pages().Add(newPage)
But the TabLayout become very small, and so the TabWidget.
TabLayout
TabWidget
My question is: Can I set widget or container's width to as much as possible like HSpacer VSpacer. Thank you.
HSpacer VSpacer
Please try SetMinMaxSize.
SetMinMaxSize
It's my fault. In my situation the real issue is that I forget to set Layout to a container..
After I dynamic add a TabLayout to TabWidget like this:
But the
TabLayout
become very small, and so theTabWidget
.My question is: Can I set widget or container's width to as much as possible like
HSpacer VSpacer
. Thank you.