qtreeview
QTreeView draw drop indicator
I need to implement开发者_JS百科 rows moving via drag-n-drop in QTreeView and show the drop indicator between rows. I am wondering if there is a way to override indicator drawing, so it is displayed f[详细]
2023-04-09 01:50 分类:问答How to use QSortFilterProxyModel to filter a tree model that only display children nodes with their parents?
I have a working tree model derived from QAbstractItemModel and I wish to filter it using a QSortFilterProxyModel subclass to display only children nodes of certain criteria. For example I have the fo[详细]
2023-04-07 14:40 分类:问答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 分类:问答Qt QTreeView - Revert to previous selection when condition not met
On QTreeView selection change, I would like to revert to the previous selection if a certain condition is not met.[详细]
2023-03-30 22:55 分类:问答Hyperlinks in QTreeView
I\'m trying to display clickable links within a QTreeView.I\'ve created my own QStyledItemDelegate, and I can draw text that looks like a link, but isn\'t clickable like a[详细]
2023-03-29 02:19 分类:问答Qt QTreeView: Only allow to drop on an existing item
I\'ve got a custom model inherited fromQTreeView.I\'ve enabled drag and drop and can currently drop an item onto the tree.However, you can currently drop onto either an existing item or between items.[详细]
2023-03-25 17:04 分类:问答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 分类:问答