Skip to content

Property

Qt Base Class: Property

Signature: <attribute '__doc__' of 'PySide6.QtCore.Property' objects>

Base classes

Name Children Inherits
Property
PySide6.QtCore

⋔ Inheritance diagram

graph TD
  1473299723280["core.Property"]
  1473289088192["QtCore.Property"]
  140713234304496["builtins.object"]
  1473289088192 --> 1473299723280
  140713234304496 --> 1473289088192

🛈 DocStrings

Bases: Property

Template class that enables automatic property bindings.

Source code in prettyqt\core\property.py
class Property(QtCore.Property):
    """Template class that enables automatic property bindings."""

    def __init__(self, *args, **kwargs):
        self.doc = kwargs.get("doc")
        super().__init__(*args, **kwargs)

    @classmethod
    def get_doc_dict(cls, klass: type):
        import inspect

        return {
            name: member.doc
            for name, member in inspect.getmembers(klass)
            if isinstance(member, cls) and hasattr(member, "doc")
        }