The text value of QPushButton not "rich text", so it will not interpret your html as expected. Either use setFont in your widget to set the font size, or set it via the stylesheet:
QFont font = ui->pushButton->font(); font.setPointSize(16); ui->pushButton->setFont(font);
Style sheets, while more powerful, can be a little more complicated because it forces you to define a number of other functions that you are currently rewriting.
source share