-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.15.0 RC2, 6.0.0 Beta4
-
None
-
-
ab1431e1f (dev), 9d8854c22 (6.10), 6029af2ec (6.9)
The QThread documentation doesn't mention that QTranslator::translate is thread-safe.
However, QTranslator::translate seems to be thread safe by design, as QCoreApplication::translate, that is marked as thread safe, calls this function (guarding it with a read lock only).
Note that a (guaranteed) thread safe QTranslator::translate function may be beneficial in a multi client environment, f.ex. a webserver configuration. This allow the application to share the translator object between multiple sessions.