Qt 6.12 LTS is out! See what's new in the release
blog
Select multiple items in a qgraphicsscene with a selection rectangle
General and Desktop
2
Posts
2
Posters
2.0k
Views
1
Watching
-
Hello,
I have subclassed QGraphicsView and QGraphicsScene which has a huge amount of subclassed QGraphicsItem's in it. Now i want to select multiple item's, which works if i use the ctrl key+mouseclick. However, I want to be able to hold the mouse and draw a selection rectangle which selects the items.Can Qt already do this or do I need to implement this on my own?
-
Hi,
For the selection rectangle, have a look at the QRubberBand
Hope it helps