[Interest] Qt.conf and desktop application

Nikos Chantziaras realnc at gmail.com
Wed Jan 16 18:10:04 CET 2019


Can't you load translation files programmatically with QTranslator?

Can't help with QML though. I don't know what you're doing there and why 
you need to set Qml2Imports.


On 16/01/2019 18:40, Jérôme Godbout wrote:
> So how do you specify the Translation and QmlImport path when running locally? I wish I could only add a few lines at the beginning of my C++ but it doesn't seem possible to modify the translation file into a .qrc file. Ok, I guess the qt.conf is only for release overwrite when deploying, but I still have no solution to make this work properly into debug and QtCreator then.
> 
> All this seem over complicated for setting a few paths. I don't want to fall into the mess I used to do with a script that set the env and launch the application, this was painful to maintain and no fun at all.
> 
> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org> On Behalf Of Nikos Chantziaras
> Sent: January 16, 2019 11:09 AM
> To: interest at qt-project.org
> Subject: Re: [Interest] Qt.conf and desktop application
> 
> On 16/01/2019 01:12, Jérôme Godbout wrote:
>> I’m having some problem while porting an application to Linux Desktop.
>> I’m using a qt.conf to set 2 values
>>
>> [Paths]
>> Translations=:/i18n
>> Qml2Imports=:/
>>
>> I don’t do anything else, but I cannot launch my application when I
>> add the Qt.conf (even with only Translations). The platform library
>> cannot be found anymore.
> You never use a qt.conf when running locally during development. You only use one for the deployed application package where you bundle the Qt libs.
> 
> Your error here is simply due to a missing "Plugins=<path>" entry in the qt.conf. But again, you only do that in the deployed application.
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
> 





More information about the Interest mailing list