<?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[QCustomPlot integration with VS2017]]></title><description><![CDATA[<p dir="auto">Hi all and thanks for taking the time,</p>
<p dir="auto">I use Qt with VS2017 and I try to integrate QCustomPlot. I can configure VS2017 to include the directive '#include "qcustomplot.h"' in the generated sources using the options for the ".ui" file in VS2017, but the logic in the generated code (based upon the ".ui" file) does not spawn an instance of QCustomPlot.<br />
I tried to use Qt creator for that but without success.<br />
Any thought will be much appreciated!</p>
]]></description><link>https://forum.qt.io/topic/101842/qcustomplot-integration-with-vs2017</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 15:59:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/101842.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Apr 2019 19:38:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 17:16:28 GMT]]></title><description><![CDATA[<p dir="auto">Problem solved. Thanks for the timely support - much appreciated !</p>
]]></description><link>https://forum.qt.io/post/523625</link><guid isPermaLink="true">https://forum.qt.io/post/523625</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 17:16:28 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 07:02:53 GMT]]></title><description><![CDATA[<p dir="auto">OK thanks, will try later once I'm home....</p>
]]></description><link>https://forum.qt.io/post/523485</link><guid isPermaLink="true">https://forum.qt.io/post/523485</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 07:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 06:43:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tamirmichael">@<bdi>tamirmichael</bdi></a> said in <a href="/post/523475">QCustomPlot integration with VS2017</a>:</p>
<blockquote>
<p dir="auto">But you referred to the designer. Can you please tell me how this can be done there as well?</p>
</blockquote>
<p dir="auto">It's already done in the tutorial. See the "Promote to..." step.</p>
]]></description><link>https://forum.qt.io/post/523481</link><guid isPermaLink="true">https://forum.qt.io/post/523481</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 17 Apr 2019 06:43:00 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 06:31:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I followed the steps in the integration instructions as posted above but still, VS does not introduce the necessary code.<br />
Maybe I missed a step - those are instructions for the Qt Creator, not designer:<br />
<a href="https://www.qcustomplot.com/index.php/tutorials/settingup" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qcustomplot.com/index.php/tutorials/settingup</a><br />
But you referred to the designer. Can you please tell me how this can be done there as well? Thanks.</p>
]]></description><link>https://forum.qt.io/post/523475</link><guid isPermaLink="true">https://forum.qt.io/post/523475</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 06:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 05:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tamirmichael">@<bdi>tamirmichael</bdi></a> said in <a href="/post/523447">QCustomPlot integration with VS2017</a>:</p>
<blockquote>
<p dir="auto">But the problem is that the member "plot" is not generated by VS2017</p>
</blockquote>
<p dir="auto">So, you are using QtDesigner to design your UI - is that correct?<br />
This "plot" variable will not be generated magically - you have to put it in QtDesigner like any other widget in order to be able to access it via ui-&gt;.</p>
]]></description><link>https://forum.qt.io/post/523470</link><guid isPermaLink="true">https://forum.qt.io/post/523470</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 17 Apr 2019 05:45:57 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 04:08:15 GMT]]></title><description><![CDATA[<p dir="auto">I followed the steps here:</p>
<p dir="auto"><a href="https://www.qcustomplot.com/index.php/tutorials/settingup" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qcustomplot.com/index.php/tutorials/settingup</a></p>
<p dir="auto">To no avail - still, building my VS2017 project gives</p>
<pre><code>Severity	Code	Description	Project	File	Line	Suppression State
Error	C2039	'plot': is not a member of 'Ui::SampleRenderer'	
</code></pre>
]]></description><link>https://forum.qt.io/post/523453</link><guid isPermaLink="true">https://forum.qt.io/post/523453</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 04:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 03:33:06 GMT]]></title><description><![CDATA[<p dir="auto">In a sample provided by QCustomPlot  I see in the "Ui_????" class:</p>
<pre><code>void setupUi(QMainWindow *MainWindow)
    {
        .....
        plot = new QCustomPlot(centralWidget);
</code></pre>
<p dir="auto">But I don't have this code generated for me....</p>
]]></description><link>https://forum.qt.io/post/523449</link><guid isPermaLink="true">https://forum.qt.io/post/523449</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 03:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Wed, 17 Apr 2019 02:55:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thanks for replying.</p>
<p dir="auto">The variable "ui" is an object provided by Qt, such as</p>
<pre><code>private:
    Ui::SampleRenderer ui;
</code></pre>
<p dir="auto">which is defined here (generated code):</p>
<pre><code>(ui_SampleRenderer.h)
namespace Ui {
    class SampleRenderer: public Ui_SampleRenderer {};
} // namespace Ui
</code></pre>
<p dir="auto">which is turn is then included in my class:</p>
<pre><code>#include "ui_SampleRenderer.h"
</code></pre>
<p dir="auto">and finally</p>
<pre><code>ui-&gt;plot-&gt;xAxis-&gt;setRange(0, 6, Qt::AlignCenter);
</code></pre>
<p dir="auto">But the problem is that the member "plot" is not generated by VS2017, which is not surprising due to the fact that there is nothing in the ".ui" file to mandate it.<br />
Can I use QCustomPlot separately?<br />
Can you offer an alternative approach?</p>
]]></description><link>https://forum.qt.io/post/523447</link><guid isPermaLink="true">https://forum.qt.io/post/523447</guid><dc:creator><![CDATA[tamirmichael]]></dc:creator><pubDate>Wed, 17 Apr 2019 02:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to QCustomPlot integration with VS2017 on Tue, 16 Apr 2019 19:55:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">How exactly are you trying to use QCustomPlot in your application ?</p>
]]></description><link>https://forum.qt.io/post/523414</link><guid isPermaLink="true">https://forum.qt.io/post/523414</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 16 Apr 2019 19:55:33 GMT</pubDate></item></channel></rss>