Hello, I recently figured out how to draw an image but now I'm trying to be able change the position of the image "whenever I want"/i.e. real time. I tried to by changing the position in a loop in the main file, but it just seemed to make the window freeze.
So, can someone give me an idea of what's going on? I tried studying the examples but the layers and layers of abstractions seem to be hiding the fundamentals.
So, I have to create a class that extends the Qgraphicsitem and use that to create the Qpixmap item. And, then I have to overwrite the paint function that draws the image? And then after that, I can change the position of the QPixmap whenever I want and the position will automatically change in the scene?
Just curious if I'm getting this straight.




Reply With Quote
Bookmarks