K
K
key don2017-04-14 16:15:50
Qt
key don, 2017-04-14 16:15:50

How to change QML rendering of MapPolyline in Qt?

How to change the rendering of the QML component MapPolyline in Qt, in addition to the standard line thickness, line color?
Specifically interested in the possibility of making it dotted.
I see 2 fundamental approaches:
1) redefine rendering
This component is not inherited, is it possible in principle to redefine the behavior of such a component?
2) cut off the excess
I think it would be a solution to impose an OpacityMask, but you can't impose it directly on a MapPolyline (?).
How would MapPolyline be drawn into some kind of transparent component (preferably, of course, a small size, so that it does not greatly affect performance), and then apply an OpacityMask to it?
3) make your own implementation
If you do it purely from scratch, then of course it is possible.
But I would like to use Qt standardization. I considered the opportunity to peep the implementation of MapPolyline, make my implementation of the QML component in C ++ and register and import it into QML, but this will also require significant time costs. Ideally, the first two options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Ivanov, 2020-04-14
@kolobok_11

This question is also interesting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question