I want to place the controls in the center of the layout.
-

There's a layout like this, and I'm trying to addwidget a customized control on the checked layout, but when I do addwidget, it's always drawn on (0,0).
I want to go to the center of the checked layout. I tried to go to geometry().center().x().y, but no, I tried to use spacer, but the ui was broken overall. If I put spacer in the checked layout, is there a way to fix the size of the other layout? -

There's a layout like this, and I'm trying to addwidget a customized control on the checked layout, but when I do addwidget, it's always drawn on (0,0).
I want to go to the center of the checked layout. I tried to go to geometry().center().x().y, but no, I tried to use spacer, but the ui was broken overall. If I put spacer in the checked layout, is there a way to fix the size of the other layout? -
QGridLayout using the correct size policies for the widgets it contains
-
m_pProgress->move(this->size().width()/4 , this->size().height() );
This way, it won't move.
I did split 2 in the whole widget size to make sure the move worked, so I wanted to make sure it was in the middle, but it didn't move at all. -
Hi
When a widget is inside a layout, you cannot move it manually.
It will be ignored.You could use a GridLayout instead and set its aligment.

-
Hi
When a widget is inside a layout, you cannot move it manually.
It will be ignored.You could use a GridLayout instead and set its aligment.

-
Hi
The main issue i think is that the red layout shown is not inside another layout.
Those red ones are meant to be used with other layouts.To apply a layout to that widget shown. Right click in and there is a layout menu.



