Skip to content

Instantly share code, notes, and snippets.

@nbassler
nbassler / treeview_test.py
Created April 29, 2018 15:03
PyQt5 TreeView with QAbstractItemModel
"""
Reworked code based on
http://trevorius.com/scrapbook/uncategorized/pyqt-custom-abstractitemmodel/
Adapted to Qt5 and fixed column/row bug.
TODO: handle changing data.
"""
import sys