Thank you for the answer.
If I understood you right, you mean to make class which inherits qtablewidgetitem and implement a method of that class which colors the cell in adequate manner? But, the question is, how can I control the size of areas in one cell (if you look at the picture, you will notice that there are 3 areas in one cell: green, red, blue parts). The height is the height of cells, but width? Thanx for any replies!




Reply With Quote


. What methods I need to reimplement in order to get my QItemDelegate to paint only 6th colum? Secondly, the painting depends on data (3 integer variables), as you can see on picture. How can I send those integers to QItemDelegate so the delegate can paint cell properly? Is there another way?
isplayRole, QList<int>() << 1 << 2 << 3)) and then retrieve each value from within the delegate.
Bookmarks