Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.8.0 Beta3
-
None
Description
Building the attached example succeeds on Qt6.72 and 6.5.6 but fails on Qt6.8 beta 3. Changing to qt_standard_project_setup(REQUIRES 6.8) doesn't help.
/MyModuleTest/build/Qt_6_8_0_for_macOS-Debug/MyModule/mymodule_qmltyperegistrations.cpp:10: error: 'IScreenMetrics.hpp' file not found /MyModuleTest/build/Qt_6_8_0_for_macOS-Debug/MyModule/mymodule_qmltyperegistrations.cpp:10:10: fatal error: 'IScreenMetrics.hpp' file not found #include <IScreenMetrics.hpp> ^~~~~~~~~~~~~~~~~~~~
Difference seems to be that with 6.8 generated file mymodule_qmltyperegistrations.cpp includes the base class, which doesn't happen on earlier versions.
Workaround for the build failure is to create symbolic link to module root:
ln -s include/MyModule/IScreenMetrics.hpp IScreenMetrics.hpp
Attachments
Issue Links
- duplicates
-
QTBUG-127442 REG[6.7 → 6.8]: generated qml type registration contains invalid include paths
- Closed