def changeEvent(self, event): if event.type() == QEvent.FontChange: self._queuedWidget.setFont(self.font()) QToolBar.changeEvent(self, event)
def changeEvent(self, event: QtCore.QEvent) -> None: QToolBar.changeEvent(self, event) if event.type() == QtCore.QEvent.LanguageChange: self._restranslateUi()