You could try QApplication::setFont().