I would like to display, in my custom window, two images in PyQt4. In the left side, a source image. In the right side, a transformed -transformation will be pixel-wise- image. The images will be in RGBA format loaded by PIL(low), and for numpy (scipy.ndimage.imread
).
Both images have the same size (since the transformed image will be generated from the source image), and both displays will have the same size (independent of the image size):
- If the image width is lower than display's, the image will be left-centered in the display. If it is greater, I need a scroll for the source display.
- An analogous criterion for height, top-centered, and vertical scroll bars.
- If I scroll in the source display, the transformed's display will scroll as well, but the transformed's display will not have scrollbars.
Question: What component could I use to display an image with inner scrolling capabilities? (I will be happy with the component name, and some guidelines; code would be appreciated but the main concept is the important thing for the answer).