<?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[Change font sizes for a QFileDialog]]></title><description><![CDATA[<p dir="auto">I am currently opening a QFileDialog using the following static function.</p>
<pre><code>QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"),
        "",
        "",
        0,
        QFileDialog::DontUseNativeDialog);
</code></pre>
<p dir="auto">Is there a way to increase the font size within the dialog that this function call opens?</p>
<p dir="auto">I have tried to set the stylesheet using the following statement to no effect:</p>
<pre><code> this-&gt;setStyleSheet("QTreeView {font: 16pt \"Arial\";}");
</code></pre>
]]></description><link>https://forum.qt.io/topic/59559/change-font-sizes-for-a-qfiledialog</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 22:16:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/59559.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2015 18:55:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change font sizes for a QFileDialog on Thu, 08 Oct 2015 20:56:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks dcape, I did set the call to setStyleSheet before the fileDialog call as in your example, but not seeing any results. I'm running this on Ubuntu and also tried it on a debian system running LXDE for the window manager.</p>
]]></description><link>https://forum.qt.io/post/293001</link><guid isPermaLink="true">https://forum.qt.io/post/293001</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 08 Oct 2015 20:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to Change font sizes for a QFileDialog on Thu, 08 Oct 2015 19:48:16 GMT]]></title><description><![CDATA[<p dir="auto">I just tried this in an empty project and the stylesheet statement worked for me to increase the text size. Did you put the call to set the stylesheet before the filedialog call? I also used a larger font just to be sure it was working:</p>
<pre><code>this-&gt;setStyleSheet("QTreeView {font: 26pt \"Arial\";}");
QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"),
        "",
        "",
        0,
        QFileDialog::DontUseNativeDialog);
</code></pre>
]]></description><link>https://forum.qt.io/post/292992</link><guid isPermaLink="true">https://forum.qt.io/post/292992</guid><dc:creator><![CDATA[dcape]]></dc:creator><pubDate>Thu, 08 Oct 2015 19:48:16 GMT</pubDate></item></channel></rss>