Nyte
10th July 2014, 13:38
I hope i can explain this issue correctly, so bear with me.
I have a main form that contains a frame. This frame contains a listwidget, which exists on a separate .ui file. The listitems are another .ui file.
The listitems are being parsed into the listwidget, and the listwidget into the frame of the main .ui
See this illustration of what i mean:
10511
Now all files have a layout and correctly resize with their window on their own. However, when the listwidget is being parsed into the main form, the listwidget will have the same width/height as set in the designer and will not expand to the frame of the main form.
See illustration:
10512
At first i thought it was a size policy that was incorrect, but every option does not give the desired result.
Anyone knows what i can do so the listwidget will expand to the frame?
I know that if they listwidget is placed directly into the main view with QT Designer, it will work, but the controller won't allow this.
I have a main form that contains a frame. This frame contains a listwidget, which exists on a separate .ui file. The listitems are another .ui file.
The listitems are being parsed into the listwidget, and the listwidget into the frame of the main .ui
See this illustration of what i mean:
10511
Now all files have a layout and correctly resize with their window on their own. However, when the listwidget is being parsed into the main form, the listwidget will have the same width/height as set in the designer and will not expand to the frame of the main form.
See illustration:
10512
At first i thought it was a size policy that was incorrect, but every option does not give the desired result.
Anyone knows what i can do so the listwidget will expand to the frame?
I know that if they listwidget is placed directly into the main view with QT Designer, it will work, but the controller won't allow this.