There are also C bindings code for Qt5 inside lcl/interfaces/qt5/cbindings which contains .cpp and .h files.