Hi,

I am trying to make a screenshot/Pixmap out of certain graphicItems on a QGraphicsScene object like this:

Qt Code:
  1.  
  2. foreach(QPointer<ListOfItems> item, itemsToPrint.list())
  3. {
  4. itemGroup->addToGroup(item);
  5. }
  6.  
  7. QRectF selectionRect = itemGroup->boundingRect();
  8. QPixmap image(selectionRect.width(), selectionRect.height());
To copy to clipboard, switch view to plain text mode 

Then render the image and I hoped that it will render/print in the screenshot only the items I need to. But instead of that, the screnshot that is created is fuzzy (nothing visible is shown properly), and the items from the main scene disappear

How can I make screenshot of part of the scene over the boundingRect of items that match some criteria? any example on this?

thanks