Let's say when user clicks a button an (slow) operation is performed involving database access. The problem is that the GUI becomes unresponsive if I call the operation directly.
ui->comboBox->addItems(obj->getThingsFromDatabase())
I've also tried with signals/slots, emit a request to obj and then wait his response (another signal). Anyway, the result was the same, unresponsive GUI.
What should be the approach for this issue?