QAction *action = new QAction("File", this); QFont font("Arial", 14); action->setFont(font);
QAction *action = new QAction("File", this); QFont font = action->font();Both of these examples are part of the Qt framework and can be found in the QtGui library.