qtsql
QtSQL how to read record as QMap
is there a quick way to r开发者_开发问答ead record from query as a QMap<QString,QVariant> or similar type ?[详细]
2023-02-23 00:17 分类:问答QtSQL + Sqlite and support for .size() function?
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.[详细]
2023-02-18 20:01 分类:问答QSqlite changes
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[详细]
2023-02-18 06:32 分类:问答How to make Qt aware of the QMYSQL driver
I\'m trying to access a MySql database from a Qt application but I get the following error: QSqlDatabase: QMYSQL driver not loaded[详细]
2023-01-31 01:39 分类:问答How to get a QModelIndex of a row, found by a SELECT-query (QSqlQuery) without modifying the original QSqlQueryModel
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.[详细]
2023-01-12 03:23 分类:问答How to get a QModelIndex from another QSqlQuery used for searching the database (needed for selecting the found items)
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.[详细]
2023-01-11 22:33 分类:问答How can i find the QModelIndex for given composite primary key, with QSqlTableModel
I have this table: QSqlQuery createTblSMS(\"CREATE TABLE sms_tbl(\" \"isRe开发者_C百科ad BOOLEAN NOT NULL,\"[详细]
2023-01-11 01:06 分类:问答Got stuck on using prepare() and bindvalue() in c++ Qt
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 :[详细]
2022-12-17 02:59 分类:问答