QItemDelegate own custom Calendar item drawing

30 views Asked by At

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.

1

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

I want this

0

There are 0 answers