Hi all,

I am having an issue with setting the plugins path in qt.conf to an absolute path:

[Paths]
Plugins = /usr/lib/MyLibs

I am loading the qt.conf file as a qresource (as ":/qt/etc/qt.conf"), but the application causes a segfault in the QApplication constructor (in particular, I can trace it to the call to QCoreApplication::libraryPaths() ).
If I use Qt version 4.6.2, everything works fine, but with 4.7 or 4.8, I get the seg fault.


I can fix the problem in 4.7+ by setting the qt.conf paths to be relative to the app executable, so if the app is in /usr/bin then the qt.conf:

[Paths]
Prefix = ../lib
Plugins = MyLibs


will work.

If anyone has any ideas as to how absolute paths in qt.conf works, or if anyone has seen this problem before, any help would be appreciated.

Thanks,

Roey