Thread: mbarcode
View Single Post
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#232
Hmm? Yes?

lamle, there is currently no easy way to integrate the backend in mbarcode into an other application since we don't yet have an API made. This is one of the things we'll be looking at in the future, but I guess it's not going to happen very soon. I'm not even sure how such an API would be best made either (DBus? Separate library with access to the camera widget?).

I think the closest you'll get for now is to make a plugin that sends a DBus message to your application from mbarcode (look at Qt Dbus documentation). However, this would make your users have to open up your application alongside mbarcode, which might be tedious.

The other solution is to copy the VideoWidget, BarcodeDetector and decoder classes from mbarcode and implement these statically in your application. mbarcode is open source, after all The problem with this solution is that you will have to update your application with changes in mbarcode if you want to stay up to date with the latest bugfixes etc.

I'm afraid there are no code examples of what you are trying as of yet, but we'll probably make it easier to do in the future, when we've figured out how to set up an API for other applications.
 

The Following User Says Thank You to dragly For This Useful Post: