Im working on a project where i would like to create a custom Calendar in pyqt. I have a custom model and a custom QTableView with surrounding QDateTime processing functions. In the paint function from QItemDelegate there is no way to draw a Item which goes over multiple rows in the table view. I dont know how to implement this like its implemented in MS Teams.
Currently ive got a solution where i save one calender item per cell with the same information. In the paint event i ask the item if its the first item and draw the background relative to the cell size.

Is it performant to let the QTableView paintEvent draw its items itself over the cells?
