Qt 6.11 is out! See what's new in the release
blog
create widget dynamically
-
how to create a widget dynamically
-
how to create a widget dynamically
QWidget *widget = new QWidget() -
THank you @JonB w
-
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)
parentargument to the constructor. Depending on what you do with the widget you may or may not need to pass that in, to prevent leakages. -
how to create a widget dynamically