title: Qt Cross-platform Windows & Mac: Font size
body: <p>I'm developing an application on Windows and OS X, with Qt framework.<br>
  The problem is that I have manually set up the font size for some widgets (in the ui designer).<br>
  Under windows, the fonts are perfect, but on osx, they are too big.<br>
  Indeed, the font families are converted (MS Shell Dlg 2 to Lucida Grande), but not the font size, if they have been manually set.    </p>
  
  <p>So I decided to decrease the font size in the code, with some #ifdef, like this for example:</p>
  
  <pre><code>#ifdef Q_OS_MAC
  QFont font = ui-&gt;button-&gt;font();
  font.setPixelSize(12);
  ui-&gt;button-&gt;setFont(font);
  #endif
  </code></pre>
  
  <p>It's working but it's a bite annoying when you have a lot of widgets, so I'm open for any other ideas.</p>
  
  <p>I have also a qtextedit which has this problem, and this solution doesn't works, cause it's the html code which need to be adjusted.</p>
  
  <p>Thanks</p>