'scrollhandrag keep on pressing after click
I added scrollhandrag for my pan tool function with self.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag). It is working just fine but when I added some in my mouseReleaseEvent to add Ellipse after releasing the mouse, the scrollhandrag function stop working. When I clicked the mouse, it will drag the screen but when I unclicked the mouse, the hand won't open/uncliked and it keeps on dragging the screen. How can I make the scrollhandrag to unclick when I am no longer pressing my mouse without deleting my mouseReleaseEvent?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
