Qt Pyside2 UI question

I’m currently wrote a Qt UI for Maya 2022 using Pyside2. I’m currently having problems trying to align some tick box widgets using QtWidgets.QHBoxLayout(). The structure is 4 columns per row of tick boxes. The problem here is the last row only has 2 tick box widgets. Here is an example below.

I need the second tick box in row 2 to be aligned with row one’s 2nd tick box.
Any Help would be brilliant.

Thanks :slight_smile:

You should use QGridLayout instead here

1 Like


Thanks for the speedy reply. I shall give it a go!