I have a horizontal layout that contains QLabels. These QLabels are actually icons and I want to left align them in the horizontal layout. The problem is that they are centered no matter what I do. I try to select them all with horizontal left alignment, but they are still centered. I am trying this in Qt Creator under the design page.
Is this expected behavior? Any suggestions on how to get this work?
You can add a QWidget (or a QFrame) at the top of your vertical layout, then you give this widget (or frame) an horizontal layout and you put your button and your combox box inside this widget with the horizontal layout.
You should add a horizontal spacer to the layout. Horizontal spacer is available in the left column of Designer, under "Spacers" section.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With