Solved Trying to add qlayout ... which allready has a layout.
-
Hi.
I have the following code:
WorkSpace::WorkSpace(QWidget *parent) : QStackedWidget(parent) { QGridLayout* layout = new QGridLayout(this); }
The line in the line in the constructor is giving me
Trying to add qlayout ... which allready has a layout.
when i run it.parent has a layout, but that should be beside the point?
-
Hi,
QStackedWidget already has a layout (a QStackedLayout), that's typically a widget you do not subclass but rather use as is.
-
Ok. I did not know that.
Thank you very much. :-) -
Use the doc Luke ;-)