小编Lio*_*aty的帖子

Drawing on top of image in PyQt5 tracing the mouse

I'm new to PyQt5. I'm trying to draw on top of a loaded image lines that are tracing my mouse, i.e. pressing the mouse will result in drawing whatever your mouse moves to, while the mouse is still pressed, and stops when we release the mouse.

I saw This answer and it was very helpful, but I'm trying to do something a bit more complicated.

I think I'm messing up with the events.

What I wrote (which doesn't work):

import …
Run Code Online (Sandbox Code Playgroud)

python pyqt python-3.x pyqt5

3
推荐指数
1
解决办法
5016
查看次数

标签 统计

pyqt ×1

pyqt5 ×1

python ×1

python-3.x ×1