Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Putting a grid layout as a cell of another grid layout
dev123 last edited by
My intention is to put one grid layout as a cell in another grid layout. Basically, cell (0, 0) of mainLayout would contain subLayout. I tried mainLayout->addLayout(subLayout, 0, 0), but the error is "The program has unexpectedly finished". Any suggestion on how to achieve this nesting is appreciated.
Since you don't gave much code, one silly question: Did you initialize mainLayout properly ?