[Qt-interest] qt mac carbon - my app won't load bundled plugins

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu Jan 13 17:59:16 CET 2011


On 2011-01-13 Paul Paul Miller wrote:

> In my Mac app, I'm calling QCoreApplication::setLibraryPaths() with a
> path inside my app bundle 

Another possibility is to bundle a copy of qt.conf inside your *.app bundle.

That qt.conf could look as simple as:

  [Paths]
  Plugins = PlugIns

Where "PlugIns" is the Qt plugin folder inside your app bundle (where imageformats etc. is located). This qt.conf can then be placed at $$APP_BUNDLE/Contents/Resources/qt.conf

Also refer to 

* http://doc.trolltech.com/4.7/deployment-mac.html#the-bundle
* http://doc.trolltech.com/4.7/deployment-mac.html#qt-plugins
* http://doc.trolltech.com/4.7/qt-conf.html

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22




More information about the Qt-interest-old mailing list