<?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[Show only application fonts in QFontComboBox?]]></title><description><![CDATA[<p dir="auto">At the start of my application, I call<br />
@QFontDatabase::removeAllApplicationFonts();@<br />
and then add some fonts that I want to use.</p>
<p dir="auto">Is there any way to restrict QFontComboBox to only those fonts?</p>
]]></description><link>https://forum.qt.io/topic/32141/show-only-application-fonts-in-qfontcombobox</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 13:44:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/32141.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Sep 2013 08:52:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Show only application fonts in QFontComboBox? on Mon, 30 Sep 2013 06:50:00 GMT]]></title><description><![CDATA[<p dir="auto">Didn't work. The model is automatically reset to the whole font database in too many places. Since setModel is not virtual, there's also no clean way to override this behavior.</p>
<p dir="auto">Seems the only way to do this is to write your own widget.</p>
]]></description><link>https://forum.qt.io/post/197146</link><guid isPermaLink="true">https://forum.qt.io/post/197146</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Mon, 30 Sep 2013 06:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Show only application fonts in QFontComboBox? on Thu, 19 Sep 2013 09:55:28 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!</p>
<p dir="auto">(message too short)</p>
]]></description><link>https://forum.qt.io/post/195883</link><guid isPermaLink="true">https://forum.qt.io/post/195883</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Thu, 19 Sep 2013 09:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to Show only application fonts in QFontComboBox? on Thu, 19 Sep 2013 09:13:41 GMT]]></title><description><![CDATA[<p dir="auto">since it's a ordinary QComboBox you can set your own model to it.<br />
QFontComboBox uses a simple QStringListModel, containign the font names as strings.<br />
Take a look at the Qt source of QFontComboBoxPrivate::_q_updateModel() for further info.</p>
]]></description><link>https://forum.qt.io/post/195873</link><guid isPermaLink="true">https://forum.qt.io/post/195873</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 19 Sep 2013 09:13:41 GMT</pubDate></item></channel></rss>