<?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[QFont error]]></title><description><![CDATA[<p dir="auto">I have a tableview in which I import data model from database. (I have my own data model class that I subclass QSqlQuery.)<br />
If I call this model with 5 rows with a query, it does not give a warning message.<br />
However, if I call more than 5 records, it gives the following warning. So why ? I don't do anything with QFont.</p>
<pre><code>model-&gt;setQuery(select * from users LIMIT 5 )   // no warning

model-&gt;setQuery(select * from users LIMIT 10) // warning..


</code></pre>
<p dir="auto">its gives:<br />
QFont::fromString: Invalid description '(empty)'</p>
]]></description><link>https://forum.qt.io/topic/139318/qfont-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 13:53:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139318.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2022 14:20:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QFont error on Thu, 15 Sep 2022 18:52:58 GMT]]></title><description><![CDATA[<p dir="auto">Good !</p>
<p dir="auto">Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found.</p>
]]></description><link>https://forum.qt.io/post/728884</link><guid isPermaLink="true">https://forum.qt.io/post/728884</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 15 Sep 2022 18:52:58 GMT</pubDate></item><item><title><![CDATA[Reply to QFont error on Thu, 15 Sep 2022 05:42:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> said in <a href="/post/728749">QFont error</a>:</p>
<blockquote>
<p dir="auto">Do you get empty values with your query limited to ten results ?</p>
</blockquote>
<p dir="auto">Yes, you are right. This warning has disappeared for now when I fill  null cells in the DB.<br />
Thank you so much</p>
]]></description><link>https://forum.qt.io/post/728796</link><guid isPermaLink="true">https://forum.qt.io/post/728796</guid><dc:creator><![CDATA[Nevez]]></dc:creator><pubDate>Thu, 15 Sep 2022 05:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to QFont error on Wed, 14 Sep 2022 18:33:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can you share the implementation of your custom model ?<br />
Are you using the number 5 somewhere ?<br />
Do you get empty values with your query limited to ten results ?</p>
]]></description><link>https://forum.qt.io/post/728749</link><guid isPermaLink="true">https://forum.qt.io/post/728749</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 14 Sep 2022 18:33:40 GMT</pubDate></item></channel></rss>