Update QTableView with QSqlTableModel from background thread



  • is that possible?
    Since the QSqlQuery used in the model has to be on the same thread always when used, I cannot just simply do a
    @
    QtConcurrent::run([=]{
    model->select();
    });
    @
    So I would have to move my model creation and preparation to a QThread probably?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.