Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88466

Thread safety of QTranslator::translate

XMLWordPrintable

    • All
    • 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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            docteam Qt Documentation Team
            m3197d - -
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes