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

Allow QQuickItem to respond to QEvent::LanguageChange

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: In Progress
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      This would allow QQuickItems (specifically those in Controls 2, but it would benefit other use cases too) to be notified of language change events without having to install an event filter on the application.

      One way to solve this would be to add QQuickItem::ItemLanguageChange to the ItemChange enum. This would itself still require an event filter though, and having to have e.g. an event filter for each window would still not be that nice, and would also prevent items without a parent from receiving the notification (if that is an issue).

      Another option could be to have a translatorInstalled() or languageChange() signal in QCoreApplication. That way, only items that are interested in it would suffer the (connection) overhead.

        Attachments

        For Gerrit Dashboard: QTBUG-78141
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              mitch_curtis Mitch Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes