Have movable image in PyQt/PySide that wraps one edge to the other edge when moved (similar an interactive map)

41 Views Asked by At

I have a CSV colormap image and want it to be able to move horizontally and (similar to an interactive world map like google maps) have one side wrap back to the other side when moved, like so:

[original CSV colormap]
enter image description here

[wrapped CSV map]
enter image description here

In other words, move the left edge back to the right edge when the left edge is moved out of frame (and of course, the same thing but in opposite directions for the right edge).

Currently, I just I have the image displayed in a pixmap on a label. I have not yet figured out how to move the image, let alone have it wrap around like I want.

0

There are 0 best solutions below