PDA

View Full Version : QGridLayout problem



cae
30th November 2009, 08:30
I'm trying to set a VerticalLayout inside a QGridLayout, inside the vertical layout i have set some QCheckBox, but i cant check them when runing the program... i've tried them like radio buttons and checkbox....

The main layout is created in other function, but the other elements on it work fine.


radio1=new QCheckBox("Foto",this);
radio2=new QCheckBox("Ráfaga",this);
radio3=new QCheckBox("Video",this);

QBoxLayout* panelVerticalBotones=new QVBoxLayout;
panelVerticalBotones->addWidget(radio1, Qt::AlignTop);
panelVerticalBotones->addWidget(radio2);
panelVerticalBotones->addWidget(radio3);
panelVerticalBotones->addStretch();
mainLayout->addLayout(panelVerticalBotones,2,3);

wysota
30th November 2009, 08:43
Please provide a minimal compilable example reproducing the problem.

cae
30th November 2009, 09:53
sorry, i found it!! i was setting 2 elements on the same place :P