[Interest] Qt.conf and desktop application

Jérôme Godbout godboutj at amotus.ca
Wed Jan 16 00:12:17 CET 2019


Hi,
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. I'm having a hard time figuring how to setup this for desktop since the debug and packaged application will fetch those at different place I guess. And why does the non set value get modified? Seem like giving a qt.conf make some kind of magic into qt creator and affect the plugins path to be destroyed.

Console output

QML debugging is enabled. Only use this in a safe environment.
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Anybody how to create a qt.conf that work on desktop inside QtCreator and also after deploy gather of file?

Thanks,
Jerome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190115/a235ecc4/attachment.html>


More information about the Interest mailing list