Hi!

Use the exposedRect that a graphicsitem:aint function recieves. You will need to create an item for your background set its z order to a low number and implement your own caching method..

Qt Code:
  1. CustomItem::CustomItem()
  2. {
  3. // Need this for exposedRect to be initialized!
  4. setFlag(QGraphicsItem::ItemUsesExtendedStyleOption,true);
  5. }
  6.  
  7. void CustomItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
  8. {
  9. // Use the exposedRect
  10. option->exposedRect ..
  11. ..
  12. }
To copy to clipboard, switch view to plain text mode 
HIH

Johannes