Here's what I have done:
1. Creating a GraphicsScene class, two GraphicsPixmapItem class, in first item advance(), it would keep moving upward, and in scene class, it has implemented MousePress and MouseMove function which control the second item to move.
2. Create scene object in MainWindow class, adding two item into scene, setCentralWidget to the GraphicsView which contains scene object.
Result is :
the first items may stop when I dragging the second item, when I release from touch , first item would continue to move.
My Question is:
How can I drag the second item without stopping the first item?
Also, what restriction does GraphicsScene MouseEvent has? As I test, it would crash if MainWindow class didn't implement event() function, is that normal?
Thanks for advance.