OS
CentOS 7
Qt versionQt: 5.8.0Qt Creator: 4.2.1
ContentWhen 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.
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.
<SPAN class="keyword token">auto</SPAN> go <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">GraphicsOverlay</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> go<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">setRenderingMode</SPAN><SPAN class="punctuation token">(</SPAN>GraphicsRenderingMode<SPAN class="operator token">::</SPAN>Dynamic<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">auto</SPAN> s <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">SimpleLineSymbol</SPAN><SPAN class="punctuation token">(</SPAN>SimpleLineSymbolStyle<SPAN class="operator token">::</SPAN>Solid<SPAN class="punctuation token">,</SPAN> <SPAN class="token function">QColor</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"black"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="number token">4.0</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">auto</SPAN> sr <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">SimpleRenderer</SPAN><SPAN class="punctuation token">(</SPAN>s<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> go<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">setRenderer</SPAN><SPAN class="punctuation token">(</SPAN>sr<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> m_mapView<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">graphicsOverlays</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">append</SPAN><SPAN class="punctuation token">(</SPAN>go<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">auto</SPAN> g <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">Graphic</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> go<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">graphics</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">append</SPAN><SPAN class="punctuation token">(</SPAN>g<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">auto</SPAN> pb <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token function">PolylineBuilder</SPAN><SPAN class="punctuation token">(</SPAN>SpatialReference<SPAN class="operator token">::</SPAN><SPAN class="token function">webMercator</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="token function">connect</SPAN><SPAN class="punctuation token">(</SPAN>m_mapView<SPAN class="punctuation token">,</SPAN> <SPAN class="operator token">&</SPAN>MapGraphicsView<SPAN class="operator token">::</SPAN>mouseClicked<SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="operator token">=</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">(</SPAN>QMouseEvent e<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="keyword token">auto</SPAN> p <SPAN class="operator token">=</SPAN> m_mapView<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">screenToLocation</SPAN><SPAN class="punctuation token">(</SPAN>e<SPAN class="punctuation token">.</SPAN><SPAN class="token function">x</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> e<SPAN class="punctuation token">.</SPAN><SPAN class="token function">y</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> pb<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">addPoint</SPAN><SPAN class="punctuation token">(</SPAN>p<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> g<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">setGeometry</SPAN><SPAN class="punctuation token">(</SPAN>pb<SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN><SPAN class="token function">toPolyline</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.