Personal tools
You are here: Home Developer Resources Knowledgebase We would like to use Linguist with an MFC application, without converting MFC to Qt. Is this possible?
Document Actions

We would like to use Linguist with an MFC application, without converting MFC to Qt. Is this possible?



Answer:

Yes, but since the QObject class handles the translation, you will need to create a dll that has a function that basically calls QObject::tr() and returns the result, making sure that you install the translators inside the code for the dll before using the function. You can use LoadLibrary in Windows API to load the library, then you just call the function via the dll.

 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: