| ID | ... | Creation date | June 12, 2009 |
| Platform | S60 3rd Edition, FP1, FP2 S60 5th Edition | Tested on devices | Nokia 5800 XpressMusic |
| Category | Qt for Symbian | Subcategory |
| Keywords (APIs, classes, methods, functions): QApplication::setFont(), QApplication::font() |
This code snippets shows how to change font of application in Qt. API QApplication::setFont() will set the font of application, and it take QFont as parameter. so normally we need to specify font using QFont API.
This snippet can be self-signed. As it does not use any API which require developer/certified signing.
#include <QFont>
//specify a new font.
QFont newFont("Courier", 8, QFont::Bold, true);
//set font of application
QApplication::setFont(newFont);
The code snippet is expected to show font "Courier" on application.
Font Courier (Bold and Italic)
After changing font to Times
No related wiki articles found