// Data assigmnent window filling with input sub-widgets
QComboBox* comboBox
[column_number
];
// if column_number if a constant // QComboBox** comboBox = new QComboBox*[column_number]; // this will have to be release by using delete []comboBox;
for (unsigned int row = 0; row < columns_number; row++)
{
comboBox[row]->addItem(tr("To be set..."));
comboBox[row]->addItem(tr("A"));
comboBox[row]->addItem(tr("B"));
comboBox[row]->addItem(tr("C"));
comboBox[row]->addItem(tr("D"));
grid->addWidget(Label, row, 0);
grid->addWidget(comboBox[row], row, 1);
}
//
data_assigment_input->setLayout(grid);
// Quit push button creation
// quit->setFont(QFont("Times", 18, QFont::Bold));
// Connection between widgets
connect(quit, SIGNAL(clicked()), window_data_assignment, SLOT(close()));
// Size/Position auto-managment by QVBoxLayout
wlayout->addWidget(data_assigment_input);
wlayout->addWidget(quit);
window_data_assignment->setLayout(wlayout);