MCPcopy
hub / github.com/PyQt5/PyQt / toDict

Method toDict

QTreeView/Lib/qjsonmodel.py:294–300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 self.__loadData(value, itemKey)
293
294 def toDict(self) -> dict:
295 item = self.invisibleRootItem()
296
297 return {
298 item.child(i).text(): item.child(i).toObject()
299 for i in range(item.rowCount())
300 }
301
302 def toJson(self, ensure_ascii=False, indent=None, **kwargs) -> str:
303 return json.dumps(

Callers 3

toJsonMethod · 0.95
isModifyMethod · 0.45
getDataMethod · 0.45

Calls 2

toObjectMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected