How to change languages(translations) dynamically on PyQt5?
问题 I wonder if it is possible to change the languages(translations) dynamically without using qt designer to make the UI? That means I don't want to use the function retranslateUi() to update the program interface. Here is my code, but I'm stuck on lines marked #1 #2 #3. Don't know what I should use to update the interface. import sys from PyQt5.QtCore import Qt, QTranslator from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel, QComboBox, QVBoxLayout class Demo(QWidget): def _