I'm calling a dialog at runtime, and adding content to that dialog(radio buttons),
but size of the dialog fixed and does not display properly (looks very very small) when number of content increases....
How can i get rid of this?
The code i wrote as shown below...


Qt Code:
  1. void Dialog::Display_header(QStringList headerList)
  2. {
  3. for(int i=0;i<headerList.count();i++)
  4. {
  5. QRadioButton *Rbutton= new QRadioButton();
  6. Rbutton->setText(headerList.at(i));
  7. ui->verticalLayout->addWidget(Rbutton);
  8.  
  9. }
  10. }
To copy to clipboard, switch view to plain text mode