I have a QGroupBox which contains many QCheckboxes. I use a QVBoxLayout to place them, but I would like the layout to place the QCheckboxes in a grid fashion, adapting the number of columns to the horizontal space available.


Do I have to code the behaviour myself or is there a layout that does that automatically?

Thanks!