Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123603

QSqlQueryModel: Provide a way to refresh/re-execute the current query

    XMLWordPrintable

Details

    • 18ec9c7b6 (dev)

    Description

      If it is possible for a database's contents to be modified externally (say, by a different client connected to the same SQL server), then it would be useful if the QSqlQueryModel could re-execute its query to fetch the updated data.

      This can be achieved with the current API like this...

      model->setQuery(model->query().executedQuery());
      

      ...but it would be nice to have a cleaner API like:

      model->refreshQuery();
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes