Thank You Lucas! I tried this example, I expected to print an arrow, that would replace 2 points created by PolylineBuilder, but it didn't happen. It works only if I'm add this symbol to renderer and no other methods gives me the same result. What can be wrong?
Code here:
m_arrowSymbol - pointer to Symbol, exist as private field of the class.
after, all as in your example:
connect(m_symbolStyle, &SymbolStyle::fetchSymbolCompleted, this, [this](QUuid, Symbol* symbol)
{
m_arrowSymbol = symbol;
});
m_polylineBuilder->addPoint(-10e5, 40e5);
m_polylineBuilder->addPoint(20e5, 50e5);
m_graphic = new Graphic(m_polylineBuilder->toGeometry(),m_arrowSymbol,this);
m_graphicsOverlay->graphics()->append(m_graphic);
But it show only 2 big red points. I want to create an arrow, without adding arrow symbol to all objects.
Please look at this, I don't know why it doesn't work.