<?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[what is way to use array in qt like c ?]]></title><description><![CDATA[<p dir="auto">How to use below type of array in qt class.<br />
how to declare it in header file ?<br />
how to initialize it in constructor of qt ?<br />
int arr[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};</p>
]]></description><link>https://forum.qt.io/topic/122416/what-is-way-to-use-array-in-qt-like-c</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 17:45:47 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122416.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jan 2021 15:24:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to what is way to use array in qt like c ? on Wed, 06 Jan 2021 18:14:34 GMT]]></title><description><![CDATA[<p dir="auto">Since it's a fixed size array, just declare it with the right size and then initialize it in the constructor.</p>
]]></description><link>https://forum.qt.io/post/636217</link><guid isPermaLink="true">https://forum.qt.io/post/636217</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 06 Jan 2021 18:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to what is way to use array in qt like c ? on Wed, 06 Jan 2021 15:45:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">i want to use this array to find  moving average of 15 data which comes from i2c device</p>
]]></description><link>https://forum.qt.io/post/636192</link><guid isPermaLink="true">https://forum.qt.io/post/636192</guid><dc:creator><![CDATA[Qt embedded developer]]></dc:creator><pubDate>Wed, 06 Jan 2021 15:45:05 GMT</pubDate></item><item><title><![CDATA[Reply to what is way to use array in qt like c ? on Wed, 06 Jan 2021 15:37:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Qt is a C++ framework so there's nothing special to be done.</p>
<p dir="auto">Declare the variable as member of your class and initialize the way you need it in the constructor.</p>
<p dir="auto">Note that you may want to use a container like a QVector or std::vector to store your data depending on what you are going to do with it.</p>
<p dir="auto">What are you going to use it for ?</p>
]]></description><link>https://forum.qt.io/post/636187</link><guid isPermaLink="true">https://forum.qt.io/post/636187</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 06 Jan 2021 15:37:22 GMT</pubDate></item></channel></rss>