Good practice for using QLayouts?
Solved
General and Desktop
-
For when I use nested QLayouts should I be using QWidget's between them?
For example like below or just place the QHBoxLayout in the QVBoxLayout?QWidget *menu = new QWidget(); QVBoxLayout *vboxLayout = new QVBoxLayout(); QWidget *menu1 = new QWidget(); vboxLayout->addWidget(menu1); QHBoxLayout *hboxLayout = new QHBoxLayout(); menu1->setLayout(hboxLayout); menu->setLayout(vboxLayout); ``
-
For when I use nested QLayouts should I be using QWidget's between them?
For example like below or just place the QHBoxLayout in the QVBoxLayout?QWidget *menu = new QWidget(); QVBoxLayout *vboxLayout = new QVBoxLayout(); QWidget *menu1 = new QWidget(); vboxLayout->addWidget(menu1); QHBoxLayout *hboxLayout = new QHBoxLayout(); menu1->setLayout(hboxLayout); menu->setLayout(vboxLayout); ``