I want to build a selection tool for my qml image editor.
For this, I'm looking for an similar function like setSelectedArea
in a QGraphicsScene
.
Has someone a solution for this?
Greetings
Edit: Maybe I can write a Plugin for my selection tool which extends the QQuickItem
and draw a QPolygon with openGL.
You need to implement selection yourself.
You can create MouseArea that will track mouse activity and update selected rect accordingly. I mean something like this:
Then you'll be able to update and paint the selection rectangle in your viewer's
selectionRect
property setter.