Qt Linguist Examples

Internationalization is a core feature of Qt. These examples show how to access translation and localization facilities at run-time.

Arrow Pad Example

Understanding the Qt Linguist contexts concept and using two or more languages.

Hello tr() Example

Translating a small Hello World program to Latin.

I18N Example

Demonstrates Qt's support for translated text.

Localized Clock Example

The example shows best practices for using Qt's translation and localization features in CMake and Qt Quick including the handling of plurals in different languages, and localized time and date formats.

Localized Clock with Runtime Language Switch

The example demonstrates best practices for using Qt's translation and localization features in CMake and Qt Quick, in particular changing the language of an application during runtime. It extends the simpler Localized Clock Example.

Qt Quick I18N

Generating translation files (TS and QM) for a Qt Quick application

Troll Print Example

Updating translations for later releases.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.