title: Default HTML style for controls in the Qt library
body: <p>This is a question about Qt library, not about Web design.</p>
  
  <p>For QLabel and other controls I can set HTML text, for example "&lt;h3>Some Text&lt;/h3>". The question is: where is the default HTML style is defined? How can I find out what a font would be used for &lt;h3> tag?</p>
  
  <p>The next question: can I change the default HTML style?</p>
  
  <p>Edit: I want to specify in one place in my code how my controls would be displayed. To specify css style in all the labels doesn't seem to be an elegant solution to me.</p>
  
  <p>Edit2: It seems people don't get the question. I'll try again. Suppose I do the following:</p>
  
  <pre>
  <code>
  QLabel* label = ...
  label->setText("This &lt;b>is&lt;/b> a &lt;h3>Header&lt;/h3>");
  </code>
  </pre>
  
  <p>The question: what fonts will be used for label text rendering? How can I control them? Is there a way to specify, say, default font size for &lt;h3> headers?</p>
  
  <p>Edit3: Thomi have suggested to use QTextDocument::setDefaultStyleSheet. But this is just a workaround. I have to manually apply css style to all the QTextEdits (and not QLabels) in the interface. And the question was: how to <i>find out</i> the default style sheet? QTextDocument::setDefaultStyleSheet just overrides it for a single QTextDocument object. Maybe QTextDocument::defaultStyleSheet returns it? I don't have a computer with Qt insatlled right now so I can't check it.</p>