My widget doesn't auto resize
-
Hello,
I add to design a UI containing widget loaded wfrom ui files.
Here is my ui widget:
I create an custom_widget.py file to create a class which loads the ui file.
When I show the class the contend is not auto resisable. What parameters in the ui should I use to activate the autoresize functionality?
-
Hello,
I add to design a UI containing widget loaded wfrom ui files.
Here is my ui widget:
I create an custom_widget.py file to create a class which loads the ui file.
When I show the class the contend is not auto resisable. What parameters in the ui should I use to activate the autoresize functionality?
@Xav12358 said in My widget doesn't auto resize:
What parameters in the ui should I use to activate the autoresize functionality?
Pick a proper layout (layout strategy).
A GridLayout inside a GridLayout is not what you want there. It might influence the resize behavior as you are experiencing right now.Edit:
Are you sure that you have compiled your current version of UI file?
I see buttons in your widget, but the UI template doesn't show any.