<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Segfault when trying to add a 2nd LineSeries to a Chart]]></title><description><![CDATA[<p dir="auto">Hi, I'm trying to have 2 differents series plotted on the same chart. However, when I try to add the 2nd series the program segfaults and the debugger point to the line <code>chart-&gt;domain()-&gt;setSize(rect.size());</code> in the ChartPresenter::updateGeometry function.</p>
<p dir="auto">Any idea what causes the segault and how I can add the 2nd series?<br />
I know for a fact the data are organized in the same way</p>
]]></description><link>https://forum.qt.io/topic/138331/segfault-when-trying-to-add-a-2nd-lineseries-to-a-chart</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 19:24:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138331.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Aug 2022 11:58:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Segfault when trying to add a 2nd LineSeries to a Chart on Tue, 02 Aug 2022 12:28:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> it seems to be good although i've noticed in the debugger that <code>rect.h() = -4</code> which could be the source of the issue<br />
However this is inside a Qt file and not inside a class I've made so I don't understand why it's breaking</p>
]]></description><link>https://forum.qt.io/post/723577</link><guid isPermaLink="true">https://forum.qt.io/post/723577</guid><dc:creator><![CDATA[Deneguil]]></dc:creator><pubDate>Tue, 02 Aug 2022 12:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to Segfault when trying to add a 2nd LineSeries to a Chart on Tue, 02 Aug 2022 12:13:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/deneguil">@<bdi>Deneguil</bdi></a><br />
Verify that <code>chart</code> &amp; <code>chart-&gt;domain()</code> are valid/not <code>nullptr</code>, as those would likely be the cause of the SEGFAULT?</p>
]]></description><link>https://forum.qt.io/post/723576</link><guid isPermaLink="true">https://forum.qt.io/post/723576</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 02 Aug 2022 12:13:37 GMT</pubDate></item></channel></rss>