Thank you,
Yes, that's simpleThere you have it, pretty simple.
Yest, that's what I meant.But if you really just want to alternate the row colors, this would be much better.
Yest, I know, thank you for your attention.I almost forgot: you're starting with 1 in both your for-loops. Remember that the TableWidgets indexes start at 0 and end at rowCount - 1. I have corrected that, s.a.
I've wrote, I fourtunately havent't use model-view-delegate architecture.Of course you can use a delegate with a QTableWidget, it's also part of the model-view architecture.
Bookmarks