Qt Code:
  1. QBrush brush(Qt::blue, Qt::BDiagPattern);
  2. brush.setMatrix(QMatrix().scale(99,99));
  3. foreach(QGraphicsItem *item ,Parentrect->childItems())
  4. qgraphicsitem_cast <QGraphicsRectItem * >(item)->setBrush (Qt::blue));
To copy to clipboard, switch view to plain text mode