How to get an auto incremented ID of a newly inserted row
In datebase I have these two tables, and want to add rows into them from QT using QSQLTableModel and QDataWidgetMapper. Authors: ID | Last name | First name 0 | Saroyan | William 1 | Meyers | Scott AuthorDocument: Author | Document name 0 | Human comedy 1 | c++ First I insert a row using a mapper into Authors table mapper->addMapping(LastName,1); mapper->addMapping(FirstName, 2); The ID field is auto incremented. Now when I want to add a row into AuthorDocument I need that ID, but I don't know how to get it.
What 'model' am I getting in my ListView delegate?
How to manage Focus with States in my custom QML component?
in QT I Can't create project with a Kit
Youtube video not playing in qt webview
Launch function after init function Qt - Pyside
Not able to cancel the drag when we exit mouse area
Clear QPainter Drawing over Image on Label
Having trouble drawing an image in Qt using QGraphicsScene
Custom attached properties in QML
Does QT widgets has a ZUI (zoom user interface) library C++ or supports it?
QTcpServer::incomingConnection(qintptr) not calling
Tree models in Pyside
qt creator says file aliased in qrc not found
How to read data from a text file and store it in a QVector for plotting with QCustomPlot?
psoc 3 kit3 integrated with qt, gives error code -5(error not found)
Static linking Qt - linux - standalone app