title: How to use system font in Qtextbrowser
body: <p>I am writing a Qt application, and I would like to use system's default fonts in the <code>QTextBrowser</code>. Is there any way to query what the default system font is, and set the same in <code>QTextBrowser</code>?</p>
  
  <p>The following snippet shows what I have now:</p>
  
  <pre><code>QString line;
      QFont myfont ("Monospace");
      myfont.setPixelSize(12);
      myfont.setBold(true);
      line.append("Hello!\n\n");
      this-&gt;MessageBrowser-&gt;setTextColor(Qt::blue);
      this-&gt;MessageBrowser-&gt;append(line);
      this-&gt;MessageBrowser-&gt;setFont(myfont);
      line.append("Hello Again!\n\n");
      this-&gt;MessageBrowser-&gt;setTextColor(Qt::red);
      this-&gt;MessageBrowser-&gt;append(line);
      this-&gt;MessageBrowser-&gt;setFont(myfont);
  </code></pre>
  
  <p>Would appreciate any help.</p>
  
  <p>Thanks a lot.</p>
  
  <p>Devendra</p>