is there a quick way to r开发者_开发问答ead record from query as a QMap<QString,QVariant> or similar type ?
I\'m wondering does 开发者_运维百科QtSql + Sqlite support QSqlQuery::size() function?No, it doesn\'t. However, you can use last() and at() together to get the result.
My team were previously using Qt 4.3 and are trying to update to the latest release (4.7.2). Before we were using the qsqlite plugin, but this functionality has been moved into the main QSql componen
I\'m trying to access a MySql database from a Qt application but I get the following error: QSqlDatabase: QMYSQL driver not loaded
I already asked the question but I was misunderstood, so I try to precicise the problem. I am using a QSqlQueryModel for showing data from a SQLite Database, for the view I use a QTableView.
I have a problem when dealing with my QSqlQueryModel. I want to search the 开发者_如何学编程database for some items and select them in my QTableView with QItemSelectionModel which needs a QModelIndex.
I have this table: QSqlQuery createTblSMS(\"CREATE TABLE sms_tbl(\" \"isRe开发者_C百科ad BOOLEAN NOT NULL,\"
I\'ve written a SQL query based on Qt assistant and it says that you can use the prepare() method instead of exec() then you can pass your parameter by the help of two methods called :