Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
18ec9c7b6 (dev), 1bd883dbc (dev), 5b07e3de3 (dev), 7ab288559 (6.9), fc29afbe1 (6.9)
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
For Gerrit Dashboard: QTBUG-123603 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
602303,16 | QSqlQueryModel: New method to re-execute the current query | dev | qt/qtbase | Status: MERGED | +2 | +1 |
612449,5 | QSqlQueryModel: add new function to refresh the model data | dev | qt/qtbase | Status: MERGED | +2 | 0 |
612764,4 | QSqlDriver: return the connection name of the assoicated QSqlDatabase | dev | qt/qtbase | Status: MERGED | +2 | 0 |
613273,2 | QSqlDriver: return the connection name of the assoicated QSqlDatabase | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
613274,2 | QSqlQueryModel: add new function to refresh the model data | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |