Change font in Qt application
S60 5th Edition
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.
- Download and Install latest version Qt for Symbian - Installation packages which has links on how to install the latest version
//specify a new font.
QFont newFont("Courier", 8, QFont::Bold, true);
//set font of application
- QFont: QFont reference
- The Code Example will show font Courier and you can change it to Times from menu. The example is tested on Nokia 5800 XpressMusic.