About ArcGIS Runtime SDK for Qt (Ver 100.0)

947
3
05-01-2017 06:21 AM
TakahiroKAMIYA
Esri Contributor

OS

CentOS 7

Qt version
Qt: 5.8.0
Qt Creator: 4.2.1

Content
When drawing a line with the GraphicsOverlay class, the map screen turns black when it is a solid line.
* Dynamic only occurs.
※ Please check the attached document for details.
The symbol uses the SimpleLineSymbol class.

0 Kudos
3 Replies
LucasDanzinger
Esri Frequent Contributor

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());
});‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
TakahiroKAMIYA
Esri Contributor

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?

0 Kudos
LucasDanzinger
Esri Frequent Contributor

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.