prettyqtmarkdown
Class info
Classes
| Name | Children | Inherits |
|---|---|---|
| MarkdownWidget prettyqt.prettyqtmarkdown.markdownwidget A widget used for displaying a preview of a generated mknodes tree. |
||
| MkItemModelTable prettyqt.prettyqtmarkdown.mkitemmodeltable Table which can display Qt ItemModels. |
||
| MkNodesModel prettyqt.prettyqtmarkdown.markdownmodel An ItemModel for displaying a mknodes tree. |
||
| MkPrettyQtDiagram prettyqt.prettyqtmarkdown.mkprettyqtdiagram |
||
| MkPropertyTable prettyqt.prettyqtmarkdown.mkpropertytable A table containing info about Qt properties. |
||
| MkWidgetScreenShot prettyqt.prettyqtmarkdown.mkwidgetscreenshot Node to easily create and embed a widget screenshot into docs. |
||
| QtLinkProvider prettyqt.prettyqtmarkdown.qtlinkprovider |
🛈 DocStrings
Module containing stuff to help buidling docs.
This module builds on mknodes and contains some new nodes to help building documentation, an MkItemModelTable to easily display Qt ItemModels as Markdown Tables as well as a model + widget to preview a generated mknodes tree.
MarkdownWidget
Bases: Widget
A widget used for displaying a preview of a generated mknodes tree.
Source code in prettyqt/prettyqtmarkdown/markdownwidget.py
MkItemModelTable
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. |
{}
|
Source code in prettyqt/prettyqtmarkdown/mkitemmodeltable.py
MkNodesModel
Bases: TreeModel
An ItemModel for displaying a mknodes tree.
Source code in prettyqt/prettyqtmarkdown/markdownmodel.py
MkPropertyTable
Bases: MkTable
A table containing info about Qt properties.
Source code in prettyqt/prettyqtmarkdown/mkpropertytable.py
MkWidgetScreenShot
Bases: MkBinaryImage
Node to easily create and embed a widget screenshot into docs.
Source code in prettyqt/prettyqtmarkdown/mkwidgetscreenshot.py
__init__(widget: widgets.QWidget, caption: str = '', path: str | None = None, title: str = 'Image title', header: str = '', resize_to: datatypes.SizeType | None = None)
Constructor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
widget
|
QWidget
|
Widget to make a screenshot from |
required |
caption
|
str
|
Image caption |
''
|
path
|
str | None
|
Image path |
None
|
title
|
str
|
Image title |
'Image title'
|
header
|
str
|
Section header |
''
|
resize_to
|
SizeType | None
|
widget screenshot size |
None
|