Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to create .ts file for QML in Visual Studio with Qt PlugIn
durocket last edited by
I developed my project in Visual Studio with Qt Plugin, the user interface is implemented with QML, all QML files are added into .qrc file and loaded with resource system.
for example: MyUI.qrc
<!DOCTYPE RCC><RCC version="1.0">
then in main.cpp, I tried to load the .qrc file with below code:
Everything works well, but when I tried to create .ts file with menu item "Qt->Create new Translation File", the text marked with "qstr" can not be extracted from QML file.
What is the possible solution for this issue?
deleted57 last edited by
I knwo this thread is very old but just for help other having same issue here a possible workaround: