Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Update QTableView with QSqlTableModel from background thread
Forum Updated to NodeBB v4.3 + New Features

Update QTableView with QSqlTableModel from background thread

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 762 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    philk
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved