Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.2
-
None
-
-
19a5273e05 (qt/qtbase/dev) 19a5273e05 (qt/tqtc-qtbase/dev) d26b2e5ffe (qt/qtbase/6.3) dbadfdccec (qt/tqtc-qtbase/6.2)
Description
Dear all,
I found the documentation for QtAndroidPrivate wrong. The documentation (-> https://doc.qt.io/qt-6/qtandroidprivate.html) gives the following information:
{{
Header: #include <QtAndroid>
CMake: find_package(Qt6 COMPONENTS Core REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Core)
}}
However, it seems to me that the header "QtAndroid" simply doesn't exist, and that "QtCore/private/qandroidextras_p.h" must be included instead. Also it seems that Qt6::Core is not enough. Instead, the cmake command
target_link_libraries(mytarget PRIVATE Qt6::CorePrivate)
must be used.
Best,
Stefan Kebekus.
Attachments
Issue Links
- is duplicated by
-
QTBUG-102593 QtAndroid header is missing
-
- Closed
-
- relates to
-
QTBUG-103865 Wrong import in private Android related classes (e.g., QAndroidActivityResultReceiver)
-
- Closed
-
- resulted in
-
QTBUG-109214 Documentation for QtAndroidPrivate is still wrong for CMake
-
- Closed
-