Basically I have a qlabel that I set an img.
self.QLabel.setPixMap(QtGui.QPixmap(image.jpg))
I enabled set mouse tracking and a mouse move event so I can get the coordinates of my mouse when I hover over the images.
self.QLabel.setMouseTracking(True)
self.QLabel.mouseMoveEvent = self.hoverFunction
In the hover Function I get the x coordinate of my mouse over the image.
posX=e.x()
The image being displayed is part of a list of 100. I am then using the posX to pick a new image in the list of 100 and update the pixmap in the hover function.
self.QLabel.setPixMap(QtGui.QPixmap(newImage.jpg))
As of right now this is working but it is very slow. I want to be able to change the image fast as I move my mouse. Giving the illusion of scrubbing a video. But right now it skips around and updates slowly. Any tips?