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

Allow QQuickItem to respond to QEvent::LanguageChange

XMLWordPrintable

    • 685d2ca3c7a9f221ac12f6db61e02bab40371f5f (qt/qtdeclarative/5.15)

      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.

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

            andysh Andy Shaw
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes