My goal is to retranslate a QObject subclass on the fly.
In QWidget it's really simple to catch QEvent::LanguageChange: we just override changeEvent. However, there is not such method in QObject and this is where I'm stuck.
How to catch QEvent::LanguageChange in QObject?
You can simply override the
QObject::eventmethod...Alternatively, you could put the same logic in an event filter and attach that to the
QObjectof interest.