Problems understanding layouts
-
QGridLayout *layout = new QGridLayout(); layout->setContentsMargins(6, 5, 6, 2); layout->addWidget(lastUpdatedMsg, 0, 1, 1, 1, Qt::AlignTop | Qt::AlignHCenter); layout->addWidget(_configWidget, 1, 0, 1, 1, Qt::AlignLeft); layout->addWidget(_graph, 1, 1); layout->addWidget(_Msg, 1, 1, 1, 1, Qt::AlignCenter);
So I printed the size of this layout and it says it 2x2. So What is going on here? Things are spaming over the others? there are more than 1 widget per cell space.