Pages
API Documentation
On this page

KLocalization Namespace

Namespace containing helpers for localization. More...

  • Header: #include <KLocalization>
  • CMake: find_package(KF6 REQUIRED COMPONENTS I18n)
    target_link_libraries(mytarget PRIVATE KF6::I18nQml)

Detailed Description

Function Documentation

[since 6.8] KLocalizedQmlContext *setupLocalizedContext(QQmlEngine *engine)

Creates a KLocalizedQmlContext engine and sets it up in the root context of engine.

If TRANSLATION_DOMAIN is defined, that is also set on the created context.

This function was introduced in Qt 6.8.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.