The model inspector allows you to look at QAbstractItemModel instances, chains of QAbstractProxyModel instances built on top of these, as well as QItemSelectionModel instances associated with any of them.
The model view on the top left shows a list of all QAbstractItemModel instances in the target application. Selecting a model with show its content in the model content view in the center. In the model content view you can select a single cell for inspecting its content in detail. The cell content view on the right will show you:
- Information about the QModelIndex of that cell.
- The cell flags (see Qt::ItemFlags).
- The values for all default (see Qt::ItemDataRole) and custom roles.
If the source model allows changing values, you can edit the value column in the cell content view.
The context menu on the model list allows navigation to and from the QObject insepctor for analyzing object properties.
Proxy model inspection
If the target application uses QAbstractProxyModel instances, those are shown in the tree view in the upper left, beneath there corresponding source model. This allows you to inspect intermediate results of proxy model chains.
Selection model inspection
For each selected model, the selection model list on the lower left shows all QItemSelectionModel instances for that model, as well as how many cells, rows and columns are currently selected. Selecting a selection model will show its current selection in the model content view in the center.
The context menu on the selection model list allows navigation to and from the QObject inspector for analyzing object properties.
© 2016 Klarälvdalens Datakonsult AB (KDAB).
Documentation contributions included herein are the copyrights of
their respective owners.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.