PDA

View Full Version : QApplication::setLibraryPaths doesn't work under Linux



NoRulez
10th January 2010, 11:58
Hey @all,

i've set custom library paths which i've defined as follows:


QStringList libraryPaths = QStringList()
<< qApp->applicationDirPath()
<< qApp->applicationDirPath().append("/plugins")
<< qApp->applicationDirPath().append("/plugins/sqldrivers")
<< qApp->applicationDirPath().append("/plugins/languages")
<< qApp->applicationDirPath().append("/plugins/modules")
<< qApp->applicationDirPath().append("/plugins/styles");
QApplication::setLibraryPaths(libraryPaths);


This works under Windows, but under Linux the application didn't find the language, style and sql driver plugins.

Hope anybody could help

Thanks in advance

Best Regards
NoRulez

wysota
10th January 2010, 19:51
Please provide some more info (i.e. please iterate over library paths and see what gets returned). You only need to add "plugins", by the way... Actual plugins need to be in proper subdirectories anyway.