Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Determing what protion of QSvgWidget is clicked
Encya last edited by
I'm having trouble implementing the following behaviour: determing what portion of a QSvgWidget is clicked.
The SVG image I created hase some areas I would not like to have user interaction. I have overloaded QSvgWidget and in the mousepressed event I would like to determine what part of the SVG image was clicked.
One solution I thought of was by checking the color of the clicked pixel, the areas that should be clickable will Always have a different color than those not clickable. But even after research I have not yet been able to work this out.
Does anyone have any suggestions on how the pixel or a different solution can be done?
With kind regards,
One possible way is described here
Hope it helps