qt-4.2

I try to draw this way:
Qt Code:
  1. myView::myView(QWidget *parent)
  2. : QListView(parent)
  3. {
  4. }
  5.  
  6. void myView::paintEvent(QPaintEvent *event)
  7. {
  8.  
  9. QStyleOptionViewItem option = viewOptions();
  10.  
  11. QPainter painter(viewport());
  12. painter.save();
  13.  
  14. QPen pen(Qt::blue, 5, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
  15. painter.setPen(pen);
  16. QRectF rectangle(option.rect.x(), option.rect.y(), option.rect.width(),option.rect.height());
  17. painter.drawRoundRect(rectangle,5,5);
  18. painter.restore();
  19. }
To copy to clipboard, switch view to plain text mode 
but all items are being overlaped, though the scroll works and you can see that there are items there (behind the rectangle) How to draw on background behind items?