I use more than one Qt version on my dev. pc. Therefore I created qt.conf file in binary folder to point to my/used/qt.
[Paths]
Libraries = /home/my/used/x86/qt/usr/local/qt/lib
Result: QML application with usage of fonts from …/lib/fonts is working as expected.
I wrote another app using the sqldriver and therefore my qt.conf looks like:
[Paths]
Libraries = /home/my/used/x86/qt/usr/local/qt/lib
Plugins = /home/my/used/x86/qt/usr/local/qt/plugins
Result: Db Driver QSQLITE is not available.
I set up the env variable:
export QT_PLUGIN_PATH=/home/my/used/x86/qt/usr/local/qt/plugins
Result: The SQL application works as expected.
I tried to find an environment variable to set the path to the Qt libs and fonts. But I found no solution.
My goal is to have only one way to configure the application environment. Either qt.conf or system variables.
Any suggestions or hints?
Regards,
Thomas
↧