MkItemModelTable
Base classes
| Name | Children | Inherits |
|---|---|---|
| MkTable mknodes.basenodes.mktable Class representing a formatted table. |
⋔ Inheritance diagram
graph TD
949923790["prettyqtmarkdown.MkItemModelTable"]
1430734008["mktable.MkTable"]
3678415322["mkbasetable.MkBaseTable"]
835538629["mkcontainer.MkContainer"]
1956333208["mkcontainer.MkContainerBase"]
1359323199["mknode.MkNode"]
2751680898["builtins.object"]
1430734008 --> 949923790
3678415322 --> 1430734008
835538629 --> 3678415322
1956333208 --> 835538629
1359323199 --> 1956333208
2751680898 --> 1359323199
🛈 DocStrings
Bases: MkTable
Table which can display Qt ItemModels.
The given ItemModel will get proxied with a ProxyModel which translates data from some of the ItemRoles to Markup styling, and afterwords converted to a Markup table.
Source code in prettyqt/prettyqtmarkdown/mkitemmodeltable.py
__init__(model: core.AbstractItemModelMixin, use_checkstate_role: bool = True, **kwargs: Any)
Constructor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
AbstractItemModelMixin
|
The ItemModel to display. |
required |
use_checkstate_role
|
bool
|
whether to display the CheckStateRole value if available. |
True
|
kwargs
|
Any
|
Keyword arguments passed to get_table_data. |
{}
|