title: Qt QFont selection of a monospace font doesn't work
body: <p>i'm trying to make a qt widget that shows a table of qlabels displaying hex numbers.</p>
  
  <p>i pass the numbers to the labels as qstrings ready to be printed and the labels work properly but the font type is the system default (a sans serif) that has different letter sizes, so the numbers containing "A-F" digits are no more aligned with the other numbers...</p>
  
  <p>i initially create the font with the function:</p>
  
  <pre><code>static const QFont getMonospaceFont(){
    QFont monospaceFont("monospace");  // tried both with and without capitalized initial M
    monospaceFont.setStyleHint(QFont::TypeWriter);
    return monospaceFont;
  }
  </code></pre>
  
  <p>and create a custom <code>QLabel</code> class that has this constructor:</p>
  
  <pre><code>monoLabel(QWidget *parent = 0, Qt::WindowFlags f = 0) : QLabel(parent, f) {
    setTextFormat(Qt::RichText);
    setFont(getMonospaceFont());
  }
  </code></pre>
  
  <p>but it doesn't work, so i add to the main file</p>
  
  <pre><code>QApplication app(argn, argv);
  app.setFont(monoLabel::getMonospaceFont(), "monoLabel");
  </code></pre>
  
  <p>and again the font remains unchanged..</p>
  
  <p>i searched the net for font-setting problems with <code>QLabel</code>s but i seem to be the only one who doesn't get them to work properly..</p>
  
  <p>what am i doing wrong??</p>