[Development] How can I only select border not inside rectangle to select QGraphicsRectItem

itviewer assangema at gmail.com
Mon Oct 3 23:51:14 CEST 2016


Hi,
I draw a rectangle with QGraphicsRectItem. it only has a border and not be filled. like this:

when I click inside the rectangle,it will be selected,but I would like only click on the border  to select, not inside.
how can i get it?

Thanks.

 


itviewer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20161004/f7827f86/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 515 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20161004/f7827f86/attachment.png>


More information about the Development mailing list