I define the font size for all views/widgets in main. But I would like to set a different font size to a spinbox in one of the views. I do this explicitly like this

Qt Code:
  1. pSpinbox = new QSpinBox(this);
  2. QFont font( pSpinbox->font() );
  3. font.setPointSize( 48 );
  4. pSpinbox->setFont( font );
To copy to clipboard, switch view to plain text mode 

But the font size of the spinbox remains the same? What is wrong?