<?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[How to design the code for dynamic created the tablewidgetitems?]]></title><description><![CDATA[<p dir="auto">The project has a feature to acomplish that created the tablewidgettiems dynamically.<br />
I use the code like this</p>
<p dir="auto">when init the tablewidgettiems   by using the code like this</p>
<pre><code>for(int size_count;size_count&lt;size_target;size_count++)
      TableWidgetItems.create() ... code
</code></pre>
<p dir="auto">when update the tablewidgettiems  like this</p>
<pre><code>update size_count;
delelte TableWidgetItems;
for(int size_count;size_count&lt;size_target;size_count++)
      TableWidgetItems.create() ... code
</code></pre>
<p dir="auto">and the code seemed so ugly and unusefully ,so anyone could show me an useful way to design the code?</p>
]]></description><link>https://forum.qt.io/topic/139178/how-to-design-the-code-for-dynamic-created-the-tablewidgetitems</link><generator>RSS for Node</generator><lastBuildDate>Fri, 23 Oct 2026 18:08:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139178.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Sep 2022 02:06:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to design the code for dynamic created the tablewidgetitems? on Fri, 09 Sep 2022 11:34:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> said in <a href="/post/728041">How to design the code for dynamic created the tablewidgetitems?</a>:</p>
<blockquote>
<p dir="auto">In fact,there are lots of files of the codes,and is hard to publish on the forum.</p>
</blockquote>
<p dir="auto">I did not ask you to post all the code you have. I asked you to post RELEVANT code which you do not like. Why is it so hard? How should anybody understand what you are asking from what you posted so far?</p>
]]></description><link>https://forum.qt.io/post/728045</link><guid isPermaLink="true">https://forum.qt.io/post/728045</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 09 Sep 2022 11:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to design the code for dynamic created the tablewidgetitems? on Fri, 09 Sep 2022 10:45:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> said in <a href="/post/728041">How to design the code for dynamic created the tablewidgetitems?</a>:</p>
<blockquote>
<p dir="auto">In fact,there are lots of files of the codes,and is hard to publish on the forum.</p>
</blockquote>
<p dir="auto">Then reduce it to some <em>minimal example</em> of what you want --- nobody wants to look through masses of irrelevant code.</p>
<blockquote>
<p dir="auto">It would be good if there's an example of what I just want to figured out.</p>
</blockquote>
<p dir="auto">I'm afraid nobody knows what you have in mind, so nobody will know what example you are looking for.</p>
]]></description><link>https://forum.qt.io/post/728042</link><guid isPermaLink="true">https://forum.qt.io/post/728042</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 09 Sep 2022 10:45:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to design the code for dynamic created the tablewidgetitems? on Fri, 09 Sep 2022 10:34:29 GMT]]></title><description><![CDATA[<p dir="auto">In fact,there are lots of files of the codes,and is hard to publish on the forum.<br />
And I just want to learn some codes about dynamically created the tablewidgetitems based on the input content by the users.<br />
It would be good if there's an example of what I just want to figured out.</p>
]]></description><link>https://forum.qt.io/post/728041</link><guid isPermaLink="true">https://forum.qt.io/post/728041</guid><dc:creator><![CDATA[nicker player]]></dc:creator><pubDate>Fri, 09 Sep 2022 10:34:29 GMT</pubDate></item><item><title><![CDATA[Reply to How to design the code for dynamic created the tablewidgetitems? on Fri, 09 Sep 2022 05:17:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> Sorry, I don't understand the problem.<br />
And you only posted some pseudo-code, so how can anybody know what you mean by "ugly and unusefully"?<br />
Please post your real code and explain what you do not like about it.</p>
]]></description><link>https://forum.qt.io/post/727995</link><guid isPermaLink="true">https://forum.qt.io/post/727995</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Fri, 09 Sep 2022 05:17:57 GMT</pubDate></item></channel></rss>