QVboxLaout* l= new QVboxLayout;
l->addWidget(endDeviceCombox);
ui.groupBox_2->setLayout(l);
QVboxLaout* l= new QVboxLayout;
l->addWidget(endDeviceCombox);
ui.groupBox_2->setLayout(l);
To copy to clipboard, switch view to plain text mode
or get the groupbox layout by
/*QVBoxLayout QHBoxLayout or whatever you set in ui*/ *l = ui.groupBox_2->layout();
l->addWidget(endDeviceCombox);
/*QVBoxLayout QHBoxLayout or whatever you set in ui*/ *l = ui.groupBox_2->layout();
l->addWidget(endDeviceCombox);
To copy to clipboard, switch view to plain text mode
Bookmarks