How do I update a ComboBox after opening a QDialog?
The code below does not update if you have made an update to db. I have to close the application and open it to show the new data:
Dialog::Dialog(){
carregar_comboBox();
}
void Dialog::carrega_comboBox(){
qry..
while..
ui->comboBox->addItem(qry.value(0).toString());
}