[Qt-interest] QGraphicsView: ellipse vs arc, polygon vs polyline
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Mon Nov 29 15:58:59 CET 2010
On 2010-11-29 Christian Christian Gagneraud wrote:
> ... the only missing thing
> is that they don't provide any way to have non-closed path. But perhaps
> I missed something in the documentation.
>
> Any thoughts about this around?
I don't know, and it seems to be very hacky, but maybe you could get away with "custom line segments"? I recently tried one of the Qt paint demos, where you can specify different line drawing modes (dashed, dotted, custom, ...). Maybe you could specify a 75% opaque, 25% invisible line pattern, together with the proper offset ("where to start with that pattern"), as to fake e.g. a 75% ellipse?
p.s. I did not check the docs myself and am just learning/gaining experience in QGraphicsView/Scene myself, but I guess you already checked and did find nothing; hence my hack suggestion ;)
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list