MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QTreeView/Lib/qjsonmodel.py:196–203  ·  view source on GitHub ↗
(
        self,
        parent: QObject = None,
        data: dict = None,
    )

Source from the content-addressed store, hash-verified

194
195class QJsonModel(QStandardItemModel):
196 def __init__(
197 self,
198 parent: QObject = None,
199 data: dict = None,
200 ) -> None:
201 super().__init__(parent)
202 self.setHorizontalHeaderLabels(["Key", "Value"])
203 self.loadData(data)
204
205 def loadFile(
206 self, file: str, encoding: str = "utf-8", errors: str = "ignore"

Callers

nothing calls this directly

Calls 2

loadDataMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected