[Digikam-devel] Accessing digikam database from external application
Marcel Wiesweg
marcel.wiesweg at gmx.de
Thu Apr 1 19:57:15 BST 2010
> Hi all,
>
> Could someone give me some hints on how to access a digikam database from a
> new application, using libdigikamdatabase?
Disclaimer: libdigikamdatabase is in no way a public API and subject to change
at any time.
>
> Now, the problem occurs when I call the function "setParameters". I get the
> following output:
> QEventLoop: Cannot be used without QApplication
> QObject::connect: Cannot connect (null)::aboutToQuit() to
> Digikam::DatabaseCoreBackend::slotMainThreadFinished()
> QEventLoop: Cannot be used without QApplication
> So the questions are:
> Am I on the right way or is there a better solution?
> If I am on the right way, can I use the digikam libs outside of a
> QApplication?
The ioslaves do not have a QApplication, but they create a QCoreApplication
because the SQL drivers fail to load otherwise.
> Will it work in a plasmoid?
Noone tried... it works in a kioslave though.
More information about the Digikam-devel
mailing list