blob: 9d5b2c152889a8702dccfc3ddfbc635b66d7234c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//! [0]
Q3SqlCursor* myCursor = myManager.cursor();
...
QSqlRecord* buf = myCursor->primeUpdate();
buf->setValue("name", "Ola");
buf->setValue("city", "Oslo");
...
myCursor->update(); // update current record
myCursor->select(); // refresh the cursor
myManager.findBuffer(myCursor->primaryIndex()); // go to the updated record
//! [0]
|