kode
14th December 2010, 15:43
Hi all,
I am testing some things in the QtCreator. I made simple formular with groupBox. I added grid layout to the groupBox to position all the containing objects in grid.
I am trying to do the same in cpp file (programmatically), but the layout didn't get set. I use
QGridLayout *layout = new QGridLayout;
ui->groupBox_main->setLayout(layout);
where groupBox_main is the groupBox I want to set to grid. Can anyone help a little?
I am testing some things in the QtCreator. I made simple formular with groupBox. I added grid layout to the groupBox to position all the containing objects in grid.
I am trying to do the same in cpp file (programmatically), but the layout didn't get set. I use
QGridLayout *layout = new QGridLayout;
ui->groupBox_main->setLayout(layout);
where groupBox_main is the groupBox I want to set to grid. Can anyone help a little?