Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How can I include Qt framework qm files in Visual Studio Qt project?
Forum Updated to NodeBB v4.3 + New Features

How can I include Qt framework qm files in Visual Studio Qt project?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 339 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mihai
    wrote on last edited by
    #1

    How can I include C:\Qt\5.9.1\msvc2015\translations .qm files (Qt framework qm files) in final release, Visual Studio Qt project?

    I am loading the files using:

    QTranslator* qtTranslator = new QTranslator();
    bool ok = qtTranslator->load("qt_" + language, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    

    in release and debug the translations work, but in the final build they don't and it is most probable that it's because they are not added.

    I noticed that if i move them in my project they are not loaded.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved