Quote Originally Posted by rajesh View Post
drawBackground() get called every time whenever your window painted, means when ever you move window or resize..
No. That is just one of the case. drawBackground() is called always before updating the required item(eg when its moved) with the probably the item's bounding rect. You can check that by just printing something say qDebug() << rect; in the method.