Closed JaiPasdeBol closed 2 years ago
I have pushed fix to master. Technically is easier to map every corner of selection rect to scene coordinates (rotation will be included) and then simply select nodes by closed polygon containing these points. P.S. Now selection by polygon is public interface for QGVMap.
Hi,
I noticed a very little problem that I think I solved. When you select items by drawing a rectangle with the SHIFT key pushed: it works perfectly when the map is north oriented. But it doesn't really well when your map is oriented at 45° for exemple. (The rectangle we use for the selection isn't oriented correctly) So I had this method in QGVMap class:
And I add some code in QGVMapQGView::selectObjectsByRect(QMouseEvent* event, QRect selRect)
I think it works fine with this, but you may have a better solution. Thanks for your work on this library.