Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99335

Documentation for QtAndroidPrivate is wrong

    XMLWordPrintable

Details

    • Android
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              docteam Qt Documentation Team
              skebekus Stefan Kebekus
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes