@jsulm @clanhuth

The issue is now resolved.

We have to exclude all the header files in the project. This can be done by adding the below line in the .pro file.

COVERAGE_OPTIONS += --cs-exclude-file-abs-wildcard=/qt/6.6.2/

Thanks for your help.