Quote Originally Posted by dennis81 View Post
use this in MygraphicsItem:aint() method.
qreal levelOfDetail = QStyleOptionGraphicsItem::levelOfDetailFromTransfo rm(painter->transform());

if(levelOfDetail <= 0.5)
{
drawMyLowResImage();
}
else
{
drawMyHighResImage();
}


You only need to draw the visible part of your image.
const QRectF& rect = option->exposedRect;

painter->transform() corresponds to your qgraphicsView zoomLevel.
Thanks! That gives me some ideas, as of now when my graphicsItem was created I was passing the image as a parameter to the graphicsItem. But will try some things with this idea, thanks.