[Interest] Complex border from QPainterPath
Elvis Stansvik
elvstone at gmail.com
Fri Jun 29 20:12:24 CEST 2018
2018-06-29 19:19 GMT+02:00 Patrick Stinson <patrickkidd at gmail.com>:
> Hi there!
>
> I am trying to construct a text callout QGraphicsItem. It is basically a
> rounded rect plus some triangular protrusions from the rect center to
> various points outside the rounded rect (see screenshot).
>
> What is the best way to paint this? I am having trouble with the
> QPainterPath docs.
>
As far as QPainterPath goes, this looks to be just a series of lineTo/arcTo
operations. The rest is just math and sounds like an interesting exercise :)
Elvis
> Thanks!
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180629/1b3c7f54/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2018-06-29_10-10-22.jpg
Type: image/jpeg
Size: 165367 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180629/1b3c7f54/attachment.jpg>
More information about the Interest
mailing list