[Qt-interest] qsqlite driver not loaded
Josiah Bryan
jbryan at productiveconcepts.com
Thu Mar 4 16:42:09 CET 2010
Dan Milburn wrote:
> Oliver.Knoll at comit.ch wrote:
>> Velusamy, Baskar wrote on Wednesday, March 03, 2010 6:42 PM:
>>
>>> Try to copy QT "plugin" directories to the executable location.
>> But JUST the SUBdirectories therein!
>>
>> "If you distribute any of the plugins that come with Qt (the ones located in the plugins directory), you must copy the sub-directory under plugins where the plugin is located to your applications root folder (i.e., do not include the plugins directory)." (http://doc.trolltech.com/4.6/plugins-howto.html)
>>
>> I guess that can't be repeated enough... ;)
>>
>
> Or.. they could change Qt so it works in a manner that's not totally
> counter-intuitive. It's not complicated. If Qt puts its plugins under
> a 'plugins' directory, users will reasonably assume that they should do
> likewise.
>
> At the very least, they should put the documentation for this much more
> clearly on the 'Deploying Qt Applications' page, and not on the 'How to
> Create Qt Plugins' page, which, guess what, people will probably only
> read if they want to create a plugin.
Absolutely! I never figured this out till later - I actually went the
hard way around and added the apps working directory + "/plugins" to the
qApp's library path list like so:
QString pluginPath = QString("%1/plugins").arg(QDir::currentPath());
qApp->addLibraryPath(pluginPath);
Silly me - I never thought to just paste the 'plugins/imageformats' into
the apps working directory...crikey!
Ahh well, live and learn.
-Josiah
More information about the Qt-interest-old
mailing list