<?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 update QStringListModel and combo box after initialization]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I use QStringListMode and QComboBox. I initialize  model in constructor of main window and I fill list  in other function. I dont how update combo box after I set model for comboBox.</p>
<p dir="auto">I try use update funcion but i tried use update function but it didnt work.</p>
]]></description><link>https://forum.qt.io/topic/45392/how-update-qstringlistmodel-and-combo-box-after-initialization</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 07:42:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/45392.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Aug 2014 18:46:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How update QStringListModel and combo box after initialization on Sat, 30 Aug 2014 13:39:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I had same problem as your.</p>
<ul>
<li>you can get the pointer of the model by calling model() method on the combobox</li>
<li>at this point, you have two opportunities:<br />
** if you have the displayable datas from another, you can reset the stringlist on the model<br />
** simply insert a new row by calling the insertRow</li>
</ul>
<p dir="auto">Regards,<br />
Norbert</p>
]]></description><link>https://forum.qt.io/post/241837</link><guid isPermaLink="true">https://forum.qt.io/post/241837</guid><dc:creator><![CDATA[moravas]]></dc:creator><pubDate>Sat, 30 Aug 2014 13:39:38 GMT</pubDate></item><item><title><![CDATA[Reply to How update QStringListModel and combo box after initialization on Sat, 30 Aug 2014 11:39:00 GMT]]></title><description><![CDATA[<p dir="auto">You need to update the model also</p>
]]></description><link>https://forum.qt.io/post/241821</link><guid isPermaLink="true">https://forum.qt.io/post/241821</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 30 Aug 2014 11:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to How update QStringListModel and combo box after initialization on Sat, 30 Aug 2014 07:01:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi i add new value to list  after i set model for combo box but combo box is empty.</p>
]]></description><link>https://forum.qt.io/post/241814</link><guid isPermaLink="true">https://forum.qt.io/post/241814</guid><dc:creator><![CDATA[mat007]]></dc:creator><pubDate>Sat, 30 Aug 2014 07:01:03 GMT</pubDate></item><item><title><![CDATA[Reply to How update QStringListModel and combo box after initialization on Fri, 29 Aug 2014 20:19:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What do you mean by update the combo box ? Add new values to the QStringListModel ?</p>
]]></description><link>https://forum.qt.io/post/241768</link><guid isPermaLink="true">https://forum.qt.io/post/241768</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 29 Aug 2014 20:19:11 GMT</pubDate></item></channel></rss>