HI guys,

I have created QLabel on the QGraphicsView widget, but I can't set the font size. HEre is the code I am using, and it's not changing the font( I have a standardt (point 12) font);
Qt Code:
  1. m_textOCOG = new QLabel(m_view->viewport());
  2. QFont font("Helvetica", 20, QFont::Bold);
  3. m_textOCOG->setFont(font);
  4. m_textOCOG->setText("COG: N A");
  5. m_textOCOG->setGeometry(452,10,100,20);
  6. m_textOCOG->setFrameStyle(QFrame::NoFrame);
  7. m_textOCOG->show();
To copy to clipboard, switch view to plain text mode 

Any idea? Thank you beforehand.

Maverick