<?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[It&#x27;s a combo box question linked to the database]]></title><description><![CDATA[<p dir="auto">Hello, I'm a beginner developer. It's nothing but</p>
<p dir="auto">It's a Q combo box that is linked to SQL. There is a separate name for the row in the DB, what should I do if I want to put it as a different name in Qcombobox?</p>
<p dir="auto">Is this possible?</p>
<p dir="auto">ex)</p>
<p dir="auto">The value stored in DB hi. -&gt; The value I want to retrieve from QCombo hello.</p>
<p dir="auto">Can I change it using the ini file like this? Or is there another way?</p>
]]></description><link>https://forum.qt.io/topic/140138/it-s-a-combo-box-question-linked-to-the-database</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 12:15:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140138.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Oct 2022 04:47:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 08:28:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a></p>
<p dir="auto">Thank you for your advice.</p>
<p dir="auto">I'll give it a try.</p>
]]></description><link>https://forum.qt.io/post/733080</link><guid isPermaLink="true">https://forum.qt.io/post/733080</guid><dc:creator><![CDATA[meria0503]]></dc:creator><pubDate>Tue, 18 Oct 2022 08:28:04 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 08:20:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meria0503">@<bdi>meria0503</bdi></a><br />
Yes, I don't know how to be much clearer!</p>
<p dir="auto">There you could override the <code>data()</code> method and "translate" strings retrieved from the database into strings you want shown in the combo box.  It's one way, without too much disruption.  You might write your own <code>QAbstractProxyModel</code>, or you might derive from <a href="https://doc.qt.io/qt-6/qidentityproxymodel.html#details" target="_blank" rel="noopener noreferrer nofollow ugc">QIdentityProxyModel</a> as the starting point:</p>
<blockquote>
<p dir="auto">Because it does no sorting or filtering, this class is most suitable to proxy models which transform the <code>data()</code> of the source model</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/733075</link><guid isPermaLink="true">https://forum.qt.io/post/733075</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 18 Oct 2022 08:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 08:09:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/733068">It's a combo box question linked to the database</a>:</p>
<blockquote>
<p dir="auto">QAbstractProxyModel</p>
</blockquote>
<p dir="auto">Are you saying that it is possible to use the QAbstract proxy model?</p>
]]></description><link>https://forum.qt.io/post/733073</link><guid isPermaLink="true">https://forum.qt.io/post/733073</guid><dc:creator><![CDATA[meria0503]]></dc:creator><pubDate>Tue, 18 Oct 2022 08:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 08:02:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meria0503">@<bdi>meria0503</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> said in <a href="/post/733059">It's a combo box question linked to the database</a>:</p>
<blockquote>
<p dir="auto">and you want to change their text, one way would be to interpose a <code>QAbstractProxyModel</code>-derived class with your "translations".</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/733068</link><guid isPermaLink="true">https://forum.qt.io/post/733068</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 18 Oct 2022 08:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 07:54:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a></p>
<p dir="auto">There is no separate translation.</p>
<p dir="auto">You have information about the row.</p>
<p dir="auto">ex)</p>
<p dir="auto">JJ0101= 중앙101블록</p>
<p dir="auto">There's a list in this format.</p>
]]></description><link>https://forum.qt.io/post/733067</link><guid isPermaLink="true">https://forum.qt.io/post/733067</guid><dc:creator><![CDATA[meria0503]]></dc:creator><pubDate>Tue, 18 Oct 2022 07:54:11 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 07:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meria0503">@<bdi>meria0503</bdi></a> said in <a href="/post/733061">It's a combo box question linked to the database</a>:</p>
<blockquote>
<p dir="auto">I want to print it out in Korean.</p>
</blockquote>
<p dir="auto">Do you already have the translations somewhere?</p>
]]></description><link>https://forum.qt.io/post/733062</link><guid isPermaLink="true">https://forum.qt.io/post/733062</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 18 Oct 2022 07:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 07:34:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a></p>
<p dir="auto">I'm sorry for my poor translation.</p>
<p dir="auto">To give you more explanation,</p>
<p dir="auto">In the DB column,</p>
<p dir="auto">If there are 1, 2, and 3 lines,</p>
<p dir="auto">I'm going to put the row in QCombox.</p>
<p dir="auto">But the language in line 1, line 2, line 3 is English</p>
<p dir="auto">I want to print it out in Korean.</p>
]]></description><link>https://forum.qt.io/post/733061</link><guid isPermaLink="true">https://forum.qt.io/post/733061</guid><dc:creator><![CDATA[meria0503]]></dc:creator><pubDate>Tue, 18 Oct 2022 07:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 07:28:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meria0503">@<bdi>meria0503</bdi></a><br />
<em>If</em> you mean you have entries in a SQL table which you are displaying in a <code>QComboBox</code> bound to a <code>QSqlQueryModel</code> and you want to change their text, one way would be to interpose a <code>QAbstractProxyModel</code>-derived class with your "translations".</p>
<p dir="auto">But you may mean something quite different!  No idea what your "change it using the ini file" might mean.</p>
]]></description><link>https://forum.qt.io/post/733059</link><guid isPermaLink="true">https://forum.qt.io/post/733059</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Tue, 18 Oct 2022 07:28:34 GMT</pubDate></item><item><title><![CDATA[Reply to It&#x27;s a combo box question linked to the database on Tue, 18 Oct 2022 05:09:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meria0503">@<bdi>meria0503</bdi></a> Your description is really unclear.<br />
Do you want to translate text in QComboBox?<br />
Please explain more clearly.</p>
]]></description><link>https://forum.qt.io/post/733032</link><guid isPermaLink="true">https://forum.qt.io/post/733032</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 18 Oct 2022 05:09:57 GMT</pubDate></item></channel></rss>