Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.qt3support.sql.q3sqlmanager_p.cpp

//! [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]



Generated by  Doxygen 1.6.0   Back to index