Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move around items in QtDesigner?

Tags:

python

qt

I have a very silly problem.enter image description here

I would like to move the top layout on the right side of my MainWindow down ( I mean under the layouts with the push buttons). Well, in Android Studio in such case I would simply move desired components inside my object inspector and arrange the order there. However in Qt Desing it is "frozen" and I'm not able to do it.

What is the simpliest way to move the components around in the desired hierarchy?

like image 881
DorianOlympia Avatar asked Jan 20 '26 08:01

DorianOlympia


1 Answers

You can not move widgets/layouts from the object inspector, the items are just displayed in alphabetical order. You have to do it on the graphical elements.

You should be able to drag&drop your layout and see a blue line where it is going to be inserted. When you have a main layout, it fills all the space available so you can only insert widgets/other-layouts between other elements.

The easiest way from scratch is to place all the widgets (and spacers) you need, without taking care of sizes and alignment, then wrap them into layouts from the most inner layout to the most outer.

like image 71
ymoreau Avatar answered Jan 22 '26 23:01

ymoreau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!