Thanks Wysota after digging around in the source code myself I came to the same conclusion. That is that it would be better to subclass the view and then re-implement the paintEvent method. I did get the grid lines to draw using the delegate by resizing the rectangle like you suggested but in the end this approach still had problems because the delegate isn't always getting called when the background is getting redrawn so sometimes my gridlines will disappear and not come back till I click in the box or some other event happens that calls the delegate. I am going to work on my implementation using the view and paintEvent method I also have to work out how to deal with the alternating back ground color I am not for sure yet when that is getting painted but I do know that I need to paint it in the paintEvent.

If I work something out I will be sure to post it.

Thanks