-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add private include paths #955
Comments
Thanks for taking the time to report this issue. So this is a private header, but I believe under CMake this would be part of the QtGui Private target? Eg If so then yes I think we should try to add support for this somewhere, like by having a special case for "Private" in We'd have to investigate what the Qt CMake code is doing and then match that in |
So I took a peek in the QtGui CMake, and it looks like their snippet: set_target_properties(Qt6::GuiPrivate PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:${_IMPORT_PREFIX}/include/qt6/QtGui/6.8.1>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:${_IMPORT_PREFIX}/include/qt6/QtGui/6.8.1/QtGui>" (The most important bit is at the end, the rest is just generator expressions) Except that the path is hardcoded, of course. It appears to be the same path in CorePrivate as well, and probably others. |
This allows you to include headers from private modules, e.g. "qpa/qplatformnativeinterface.h" from GuiPrivate. It does this by adding a special case for these modules, and appends the correct path. Fixes KDAB#955
I'm trying to bind QT Advanced Docking System but i'm getting the following error:
That header is in
QtGui/6.7.0/QtGui/qpa/qplatformnativeinterface.h
so I have a very hacky solution below that builds, but it'd be nice to have official support.The text was updated successfully, but these errors were encountered: