Important: Please read the Qt Code of Conduct -

How to create .ts file for QML in Visual Studio with Qt PlugIn

  • 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?

  • Hi

    I knwo this thread is very old but just for help other having same issue here a possible workaround:

Log in to reply