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.
panelVerticalBotones->addWidget(radio1, Qt::AlignTop);
panelVerticalBotones->addWidget(radio2);
panelVerticalBotones->addWidget(radio3);
panelVerticalBotones->addStretch();
mainLayout->addLayout(panelVerticalBotones,2,3);
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);
To copy to clipboard, switch view to plain text mode
Bookmarks