Select a Line with the Mouse
Solved
Qt for Python
-
How do you select a line drawn with a Qpen with the mouse and change the color. Also how do you get the coordinates of the line? And is is possible to select the end point of a line with the mouse?
@JThornton What you describe sounds like you rather should use Qt Graphics View Framework: https://doc.qt.io/qt-5/graphicsview.html
https://doc.qt.io/qt-5/qgraphicsscene.htmlWhat you draw with QPainter is just a bunch of pixels - you would have to implement everything by yourself.