Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
QGridLayout with multiple widgets
jkwok678 last edited by
Is it possible to have more than 1 in a cell in a QGridLayout?
No, its not directly but nothing stop you from creating a new QWidget, add layout to it and then
add 2 other widgets to this placeholder widget, you then insert the placeholder into cell and
it will be manged as one.
Well you don't even need an extra widget, just a nested layout for the widgets in the cell. You add widgets to some layout and then add that layout to your grid with one of the addLayout() methods.