Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
QWidget *widget = new QWidget(); QGridLayout *layout = new QGridLayout(widget); widget->setLayout(layout); layout->addWidget(new QPushButton("My Button", widget));
How can i add widget inside a Widget from qt designer
Hi Any widget you add in the designer is accessible via ui->widgetname
So if you place your code after setupUI in constructor then you can just use it like any normal pointer that you new'd yourself