those function more often use const references...
for const references you can just pass the (temporary) value:


Qt Code:
  1. QRectF rect=...;
  2. QPointF pt=...;
  3. QGraphicsItem *item=...;
  4. rect.contains(item->mapToScene(pt));
To copy to clipboard, switch view to plain text mode 

You can't do that for non-const references, though.

HTH