qmodelindex
Passing QModelIndex cross Thread queued connection
WMIQuery::wmiquery(WMI::WMITable* table, const QString& query, WMI::ProgressIndicator* progressIndicator)[详细]
2023-03-19 17:28 分类:问答How to associate QModelIndex with a new row?
I\'ve cooked up a QAbstractListModel whose model indexes contain a pointer I absolutely needed in order to process data. I add the data like so:[详细]
2023-02-07 12:18 分类:问答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 分类:问答QTableView: how do I correctly create a QModelIndex?
I\'m trying to enter edit mode on a specific cell like this: void MainWindow::on_addButton_released() {[详细]
2022-12-23 23:09 分类:问答Easier way to find (visual) position of QModelIndex in QTreeView
I\'m interested in calculating the physical position of a node in QTreeV开发者_StackOverflow中文版iew and can\'t find a way to do this (other than calculating it myself, which is cumbersome and error[详细]
2022-12-11 06:51 分类:问答