[Interest] Draw ellipse (and etc.) the same way as cosmetic QPen

Dmitrii Volosnykh dmitrii.volosnykh at gmail.com
Tue Jan 14 16:32:22 CET 2014


> Have you tried adding child GraphicsItems for each of the dots and
> setting the flag QGraphicsItem::ItemIgnoresTransformations? That should
> do the trick.

> Ian.

Ian, I pasted the code from my application from which you can see that I am
aware of QGraphicsItem::ItemIgnoresTransformations flag. The problem was
that I did not set the position of child items relative to their parent
thus having (0, 0) by default. Having that done I also had to adjust
drawing relative to child's local coordinate system.

Thank for input, Ian. And sorry for false alarm, everybody.

Regards,
Dmitrii.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140114/91288544/attachment.html>


More information about the Interest mailing list