Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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