On 4 October 2016 at 10:51, itviewer <[email protected]> wrote:

> 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?
>

Reimplement shape(), and use QPainterPathStroker ?

Chris


> Thanks.
>
>
> ------------------------------
> itviewer
>
> _______________________________________________
> Development mailing list
> [email protected]
> http://lists.qt-project.org/mailman/listinfo/development
>
>
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to