<?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[Reformulated: labels and buttons don&#x27;t inherit font properties on Mac]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">While porting my Windows application to Mac, I notices an inconsistent behaviour:</p>
<p dir="auto">While I can change the font size on Windows for my whole application with</p>
<p dir="auto">qApplication-&gt;setFont(newFont);</p>
<p dir="auto">this doesn't work for label and button widgets on Mac (but works fine for checkboxes for instance). I am wondering if this might be a bug or a feature?</p>
<p dir="auto">I of course made sure that all widgets have default parameters for the font in their properties.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/topic/13716/reformulated-labels-and-buttons-don-t-inherit-font-properties-on-mac</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 20:04:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/13716.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Feb 2012 12:06:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reformulated: labels and buttons don&#x27;t inherit font properties on Mac on Fri, 03 Feb 2012 15:59:19 GMT]]></title><description><![CDATA[<p dir="auto">If anyone is interested:</p>
<p dir="auto">I solved my problem with following line of code:<br />
@<br />
qApplication-&gt;setStyleSheet("QPushButton { font: 10px} QLabel { font: 10px} QLineEdit { font: 10px}  QCheckBox { font: 10px} QGroupBox { font: 10px} QComboBox { font: 10px} QListWidget { font: 10px} QRadioButton { font: 10px}");<br />
@<br />
(Globally setting the font size ( qApplication-&gt;setFont(newFont) )would not affect all the widget types on Mac)</p>
]]></description><link>https://forum.qt.io/post/128026</link><guid isPermaLink="true">https://forum.qt.io/post/128026</guid><dc:creator><![CDATA[floatingWoods]]></dc:creator><pubDate>Fri, 03 Feb 2012 15:59:19 GMT</pubDate></item></channel></rss>