Closed chenqinghe closed 4 years ago
After a long time research and experiment, finally i find that tabpage MUST have a layout, so just add the code:
page.SetLayout(walk.NewVBoxLayout())
will solve the problem.
How to resolve the error ? "add TextEdit error: cannot insert same widget multiple times".
page.Children().Contains(te) replace page.Children().Add(te) can resolve this error.
here is my code:
The code do create a new tabpage and append to tabwidget, but its content is empty. I dont know how to figure out the problem, please help me, thank you!