qabstractitemmodel
Qt: Example of QAbstractItemModel implementation using QtSql (to use with QTreeView)
I\'m looking for an example implementation of QAbstract开发者_运维问答ItemModel to use with QTreeView.[详细]
2023-04-06 23:10 分类:问答QAbstractItemModel + QTreeView what could couse item to become unselectable?
I\'m trying to create my own model based on QAbstractItemModel. It seems to work fine. It passes modeltest assertions.[详细]
2023-04-05 21:48 分类:问答QTreeView / QAbstractItemModel - adding items and using beginInsertRows
I\'开发者_Python百科m implementing my model based on QAbstractItemModel and I\'m using it with QTreeView to display hierachical data. Data are stored in sqlite table.[详细]
2023-04-04 18:08 分类:问答Qt error "persistent model indexes corrupted" why?
I\'ve a problem with my Qt/interview application. I use QTreeView to display tree data. I implemented my own model based on QAbstractItemModel.[详细]
2023-04-04 15:13 分类:问答QAbstractItemModel data() is NEVER called
I\'m attempting to create a QTreeView and use a custom model for it. I have placed qDebug() statements at various places, and I have determined that data() is never being called. How can I fix this pr[详细]
2023-03-22 16:22 分类:问答Displaying QAbstractListModel items in QTableView columns
I\'ve been toying around with Qt and ran into a small issue. I want to display a list of pictures as a table of icons. Right now, I\'m doing this by subclassing QAbstractTableModel, and plugging it i[详细]
2023-03-14 17:35 分类:问答How do I keep my QAbstractTableModel in sync with my data store?
In my app, I have a class for keeping a list of items: class Database : public QObject { Q_OBJECT public:[详细]
2023-03-02 17:48 分类:问答How to make Qt delegate editors 'sticky'
I\'m migrating an application from a homegrown UI to Qt. One of the most important controls is the property panel, which takes an object that implements my reflection API\'s interface and spits out a[详细]
2023-02-08 03:22 分类:问答How do I get the column names of a QSqlTableModel?
I would like to have something like 开发者_开发百科QString QSqlTableModel::getColumnName(int col).You can set column name aliases like so in a QSqlTableModel:[详细]
2023-02-03 00:31 分类:问答QAbstractItemModel and QTreeView [closed]
It's diffic开发者_JS百科ult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. F[详细]
2023-01-28 03:40 分类:问答