Solved Some questions regarding visual components (widgets).
-
@jenya7 said in Some questions regarding visual components (widgets).:
dock components,
Hi
What do you mean by that ?
The only dockable widges are DockWidgets that can both float as windows and be embedded
into a widget/form. However it can contain any other widget you want.Any widget can be embedded into any widget using layouts but im not sure if you mean that by
dock components ? -
@mrjj said in Some questions regarding visual components (widgets).:
@jenya7 said in Some questions regarding visual components (widgets).:
dock components,
Hi
What do you mean by that ?
The only dockable widges are DockWidgets that can both float as windows and be embedded
into a widget/form. However it can contain any other widget you want.Any widget can be embedded into any widget using layouts but im not sure if you mean that by
dock components ?I have a tabWidget on a MainWindow. When I resize the MainWindow, make it bigger, the tabWidget stays the same size, it looks ugly. I want it to stretch along with the MainWindow.
The same goes for the components on the tab - they should resize along with the tab.
-
Take a look at Qt Layout Management
-
@Christian-Ehrlicher said in Some questions regarding visual components (widgets).:
Take a look at Qt Layout Management
I think it refers to Qt Quick Application where I create the visual components in my program. In my case - Qt Widget Application - can't grasp it - how can apply this layout to my widgets I drag from the components tab?
-
@jenya7 said in Some questions regarding visual components (widgets).:
Qt Layout Management
Same. Please read about following the link provided by @mrjj
You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview. -
@jenya7 said in Some questions regarding visual components (widgets).:
I think it refers to Qt Quick Application
No, the link is correct for QtWidgets.
-
@artwaw said in Some questions regarding visual components (widgets).:
@jenya7 said in Some questions regarding visual components (widgets).:
Qt Layout Management
Same. Please read about following the link provided by @mrjj
You can set layouts programmatically or do it via designer. Once everything is set properly you will get what you need (from the designer you can test using tools -> form editor -> preview.How do I do it via designer?
-
-
-
@jenya7 said in Some questions regarding visual components (widgets).:
Thank you. It works.
So is your issue solved? Please don't forget to mark your post as such in that case.