Qt applications are just plain C++ applications, so you have to include proper header and link your executable with the library.

If you use qmake and the library you want to use is libsomething.so placed in /some/dir/lib and the headers are in /some/dir/include, you have to add:
Qt Code:
  1. LIBS += -L/some/dir/lib -lsomething
  2. INCLUDEPATH += /some/dir/include
To copy to clipboard, switch view to plain text mode 
to your .pro file.