Lightning Talk, Declarative Retranslations in QML
summary
Problem: QML tr() calls don’t reevaluate reliably on language change. Solution: a C++ translator installs an event filter for QEvent::LanguageChange and creates lightweight translateRequest objects exposing a property that emits changed on language switch, so QML bindings re-evaluate without hacks. Bug: single-binding replacement caused abandoned objects and GC churn, so bindings are split into a small TRText QML component. Demo uses a “quack” translator and works; source is on GitHub.
AI-written summary · about
