Unsolved create widget dynamically
-
how to create a widget dynamically
-
QWidget *widget = new QWidget()
-
THank you @JonB w
-
@Rameshguru
Wow, I didn't really expect the answer you wanted to be no more than that, but fine of it is.You should also read http://doc.qt.io/qt-5/qwidget.html#QWidget and understand about the (optional)
parent
argument to the constructor. Depending on what you do with the widget you may or may not need to pass that in, to prevent leakages. -