Skip to content

Using the QZXing through the source code

Nikolaos Ftylitakis edited this page Aug 25, 2016 · 2 revisions

Prerequisites

Get the source code of the project and copy the qzxing/src to a folder of your choice (projectX_home_folder/QZXing).

Including the library

The following procedure is the same regardless the platform you are targeting since this code is has nothing platform specific.

All you need to do is to add in your .pro file of your project the following line:

include(QZXing/QZXing.pri)

This line will include everything needed in your project. Now all the functionality is available to your project.

Considerations

Bare in mind that now upon building your project, you are building the QZXing as well. In that way you are free to change anything needed in the library.

This is a procedure for inserting the complete source code to your project. The alternative procedure is to build the library as a dynamic or static library and use it like any other library. Please advise the respective wiki page.