[Interest] qt plugins path for QtBrowserPlugin

Sergey sh0375 at gmail.com
Thu May 24 13:41:40 CEST 2012


I develop MacOS safari plug-in using QtBrowserPlugin

Deploy Contents/Plugins/imageformats/libqjpeg.dylib with my safari plug-in.
But QT code does not find it.

Safary plugin gives this information:

qDebug() << "Library paths: " << QCoreApplication::libraryPaths();
prints: Library paths:  ("/Applications/Safari.app/Contents/MacOS")

qDebug() << "App path: " << QCoreApplication::applicationDirPath();
prints: App path:  "/Applications/Safari.app/Contents/MacOS"

But Safari plug-in itself is located in ~/Library/Internet Plug-Ins
or in /Library/Internet Plug-Ins

So I need to call
  qApp->setLibraryPath( + "~/Library/Internet 
Plug-Ins/my.plugin/Contents/Plugins");

How can I find out location of safari plug-in, if applicationDirPath() 
gives location of safari app, not location of its plug-in?

--
Sergey



More information about the Interest mailing list