A similar question was asked here, but without description how to rescale the image. I only found the C++ specs for QPixmap so far, and a reference guide for pyQT4. But the latter does not seem to have any reference to QPixmap.
Question: Does anyone know how to show a rescaled version of the full image based on the code in the first link, and/or where I can find the pyQt4 specs?
You could use the QPixmap.scaledToHeight or QPixmap.scaledToWidth method:
You can find documentation on PyQT classes (including QPixmap) here.
Sometimes when I am lazy and do not want to read documentation, I use this:
which prints lots of output about all the attributes of the object passed to
describe. In this case, you can find relevant methods by searching for the string-> QPixmapsince these are the methods that return a newQPixmap. That’s how I foundscaledToHeightandscaledToWidth.