subclass the paint method as you have done and inside just draw the background as you like. Afterwards just call the paint method of the base class, the simple text item in your case and all should work as you want it to.
And may be you need to change the pen outside the paint method, but I am not sure about it.
Bookmarks