PyQt5 / PyQt

PyQt Examples(PyQt各种测试和例子) PyQt4 PyQt5
GNU Lesser General Public License v2.1
6.65k stars 1.97k forks source link

Highlighting an area in QGraphicsView PyQt5 #189

Open Aleksandr34nov opened 2 months ago

Aleksandr34nov commented 2 months ago

Hi, everybody I am writing an interface in PyQt 5 It is necessary to implement an area selection mode on the QGraphicsView on which the QGraphicsScene is located Example on gif: IMG_6014 3

It is necessary to be able to resize the selected area using points in the middle of the edges and corners of the area. The area is highlighted in the uploaded photo. That is, you just need to select an area and get the coordinates of the selected area.

If someone can suggest how this can be done or video similar solutions, then I will be grateful for any sources and links to examples. Thank you in advance.

892768447 commented 2 months ago

https://github.com/sashoalm/ResizableRectItem