Skip to content

HelpContentModel

Base classes

Name Children Inherits
AbstractItemModelMixin
prettyqt.core.abstractitemmodel

⋔ Inheritance diagram

graph TD
  1473572366720["qthelp.HelpContentModel"]
  1473299890176["core.AbstractItemModelMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473299890176 --> 1473572366720
  1473299815024 --> 1473299890176
  140713234304496 --> 1473299815024

🛈 DocStrings

Bases: AbstractItemModelMixin

Model that supplies content to views.

Source code in prettyqt\qthelp\helpcontentmodel.py
class HelpContentModel(core.AbstractItemModelMixin):
    """Model that supplies content to views."""

    def __init__(self, item: qthelp.QHelpContentModel):
        self.item = item

    def __getattr__(self, val):
        return getattr(self.item, val)

    def get_content_item_at(self, index) -> qthelp.HelpContentItem:
        return qthelp.HelpContentItem(self.contentItemAt(index))