No and that's the point, I want to resize my image with the optimized size to display it.
The size could be the size maximum that I can load depending on the memory available.
And so my question is precisely, how to calculate this optimized size for resizing my image depending on the memory available, to display my image even if it is too large (in a QPixmap added within a QGraphicsScene through a QGraphicsPixmapItem)?