'How to access nested QStandardItems?
I'm using PYQT5, I made a tree which contain a nested QStandardItem objects for example:
house = QStandardItem('house')
room = QStandardItem('room')
kitchen= QStandardItem('kitchen')
house.appendRow(room)
house.appendRow(kitchen)
I need to access the room and kitchen objects inside the house object and change their names in the tree instead of room or kitchen to anything else.
How can I do that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
