The topic is interesting and there is already a ready-made open project. It's still a beta version.
In general, QpTableView is the name of our class. Allows you to display columns of the data model according to a certain template (in a row). That is, sections can be in several rows and can be located on several cells horizontally and vertically.
Итак начинаем писать свои виджеты на основе QAbstractItemView. А что так можно было?