I tried this, but could not reproduce (tested on Ubuntu 16.04). Could you upload a small sample project that reproduces the issue? Also, are you able to reproduce the issue on any other platforms? As you might know already, CentOS isn't a supported platform of ours, but I'm guessing it should mostly behave the same as RHEL.
auto go = new GraphicsOverlay(this);
go->setRenderingMode(GraphicsRenderingMode::Dynamic);
auto s = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor("black"), 4.0, this);
auto sr = new SimpleRenderer(s, this);
go->setRenderer(sr);
m_mapView->graphicsOverlays()->append(go);
auto g = new Graphic(this);
go->graphics()->append(g);
auto pb = new PolylineBuilder(SpatialReference::webMercator(), this);
connect(m_mapView, &MapGraphicsView::mouseClicked, this, [=](QMouseEvent e)
{
auto p = m_mapView->screenToLocation(e.x(), e.y());
pb->addPoint(p);
g->setGeometry(pb->toPolyline());
});
Thank you for your information.
I tried on the small sample projects but an error occurred.
Sorry another platforms until is not tried.
Is Cent OS difficult?
Can you share your project with me please?
I do not know if this is related to the issue or not, but I just wanted to make you aware that CentOS is not one of our officially supported platforms. The officially supported platforms are listed here - System requirements—ArcGIS Runtime SDK for Qt | ArcGIS for Developers
It still might work since it is similar to RHEL, but we have not done any testing on this platform.