many opensource code is in c code format for most wide use. qt uses c++.
so use c function is the same as common C++ and C program.
c functions and var to be called by c++ should be in a header file:
//cHeader.h
#ifdef __cplusplus
extern "C" {
#endif
void cFuncCalledByCPlus();
extern int cVar;
#ifdef __cplusplus
}
#endif
in Cplus code, include "cHeader.h" and use functions and variables from c. So simple.