Skip to content

itemmodels

Docs

Module containing ItemModels for common data structures.

PrettyQt includes a large amount of ItemModels for Qt-based types, Python built-in types as well as for different data structures of external libraries.

  • All models are proper views on data structures, not populated StandardItemModels.
  • Boolean values are always handled via CheckState role, both for editing and displaying.
  • Some of the models should be used in conjunction with the EditorDelegate. That delegate supports editing a large amount of different datatypes and should be the preferred choice for most models.
  • In general, the models are unstyled (with some few exceptions. Styling should be done via the extensive proxy system which is baked into PrettyQt.

Classes

Name Children Inherits
ListMixin
prettyqt.itemmodels.listmixin
LayoutHierarchyModel
prettyqt.itemmodels.widgethierarchymodel
  • BaseHierarchyModel
ModuleInfoModel
prettyqt.itemmodels.moduleinfomodel
WidgetsDetailsModel
prettyqt.itemmodels.widgetsdetailsmodel
TableToListProxyModel
prettyqt.itemmodels.proxies.tabletolistproxymodel
XmlModel
prettyqt.itemmodels.xmlmodel
SliceColorValuesProxyModel
prettyqt.itemmodels.proxies.slicecolorvaluesproxymodel
LogRecordModel
prettyqt.itemmodels.logrecordmodel
ModelMixin
prettyqt.itemmodels.modelmixin
DataClassFieldsModel
prettyqt.itemmodels.dataclassfieldsmodel
HighlightMouseProxyModel
prettyqt.itemmodels.proxies.highlightmouseproxymodel
ColumnTableModel
prettyqt.itemmodels.columnitemmodel
BaseDataclassModel
prettyqt.itemmodels.basedataclassmodel
SliceCheckableProxyModel
prettyqt.itemmodels.proxies.slicecheckableproxymodel
ProxyMapper
prettyqt.itemmodels.proxies.proxymapper
SliceHighlightCurrentProxyModel
prettyqt.itemmodels.proxies.slicehighlightcurrentproxymodel
StorageInfoModel
prettyqt.itemmodels.storageinfomodel
DataClassModel
prettyqt.itemmodels.dataclassmodel
SliceMapRoleProxyModel
prettyqt.itemmodels.proxies.slicemaproleproxymodel
ItemModelResolver
prettyqt.itemmodels.itemmodelresolver
Allows globbing ItemModels.
  • BaseResolver
ParentClassTreeModel
prettyqt.itemmodels.classtreemodel
  • BaseClassTreeModel
ImportlibTreeModel
prettyqt.itemmodels.importlibdistributionmodel
RegexMatchesModel
prettyqt.itemmodels.regexmatchesmodel
SliceAppearanceProxyModel
prettyqt.itemmodels.proxies.sliceappearanceproxymodel
NestedItem
prettyqt.itemmodels.nesteditem
SliceCheckableTreeProxyModel
prettyqt.itemmodels.proxies.slicecheckableproxymodel
RangeFilterProxyModel
prettyqt.itemmodels.proxies.rangefilterproxymodel
FlattenTreeProxyModel
prettyqt.itemmodels.proxies.flattentreeproxymodel
NestedModel
prettyqt.itemmodels.nestedmodel
TreeModel
prettyqt.itemmodels.treemodel
WidgetHierarchyModel
prettyqt.itemmodels.widgethierarchymodel
  • BaseHierarchyModel
ModelIndexModel
prettyqt.itemmodels.modelindexmodel
SliceChangeIconSizeProxyModel
prettyqt.itemmodels.proxies.slicechangeiconsizeproxymodel
BaseFieldsModel
prettyqt.itemmodels.basefieldsmodel
SliceDisplayTextProxyModel
prettyqt.itemmodels.proxies.slicedisplaytextproxymodel
SliceValueTransformationProxyModel
prettyqt.itemmodels.proxies.slicevaluetransformationproxymodel
ValueFilterProxyModel
prettyqt.itemmodels.proxies.valuefilterproxymodel
BaseXmlModel
prettyqt.itemmodels.xmlmodel
FrameInfoModel
prettyqt.itemmodels.frameinfomodel
FuzzyFilterProxyModel
prettyqt.itemmodels.proxies.fuzzyfilterproxymodel
QObjectPropertiesModel
prettyqt.itemmodels.qobjectpropertiesmodel
ShortcutsModel
prettyqt.itemmodels.shortcutsmodel
PredicateFilterProxyModel
prettyqt.itemmodels.proxies.predicatefilterproxymodel
AstModel
prettyqt.itemmodels.astmodel
SubsetFilterProxyModel
prettyqt.itemmodels.proxies.subsetfilterproxymodel
ActionsModel
prettyqt.itemmodels.actionsmodel
AppearanceProxyModel
prettyqt.itemmodels.proxies.appearanceproxymodel
LinkedSelectionModel
prettyqt.itemmodels.proxies.linkedselectionmodel
ColumnItem
prettyqt.itemmodels.columnitemmodel
Determines how an object attribute is shown.
  • DistributionColumn
  • NameColumn
  • ValueColumn
  • TypeColumn
  • LevelNameColumn
  • FileNameColumn
  • FunctionNameColumn
  • LineNoColumn
  • ModuleColumn
  • CreatedColumn
  • ...
JsonModel
prettyqt.itemmodels.jsonmodel
MultiColumnFilterProxyModel
prettyqt.itemmodels.proxies.multicolumnfilterproxymodel
ColumnJoinerProxyModel
prettyqt.itemmodels.proxies.columnjoinerproxymodel
SliceChangeFlagsProxyModel
prettyqt.itemmodels.proxies.slicechangeflagsproxymodel
SelectionMixin
prettyqt.itemmodels.selectionmixin
SliceFilterProxyModel
prettyqt.itemmodels.proxies.slicefilterproxymodel
ColumnOrderProxyModel
prettyqt.itemmodels.proxies.columnorderproxymodel
ColumnItemModel
prettyqt.itemmodels.columnitemmodel
SliceIdentityProxyModel
prettyqt.itemmodels.proxies.sliceidentityproxymodel
MappingModel
prettyqt.itemmodels.mappingmodel
SliceToMarkdownProxyModel
prettyqt.itemmodels.proxies.slicetomarkdownproxymodel
PythonObjectTreeModel
prettyqt.itemmodels.pythonobjecttreemodel
SubClassTreeModel
prettyqt.itemmodels.classtreemodel
  • BaseClassTreeModel
MeltProxyModel
prettyqt.itemmodels.proxies.meltproxymodel
SliceColorCategoriesProxyModel
prettyqt.itemmodels.proxies.slicecolorcategoriesproxymodel
TupleTreeModel
prettyqt.itemmodels.tupletreemodel
ChangeHeadersProxyModel
prettyqt.itemmodels.proxies.changeheadersproxymodel