Thank you,

There you have it, pretty simple.
Yes, that's simple

But if you really just want to alternate the row colors, this would be much better.
Yest, that's what I meant.

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.
Yest, I know, thank you for your attention.

Of course you can use a delegate with a QTableWidget, it's also part of the model-view architecture.
I've wrote, I fourtunately havent't use model-view-delegate architecture.