Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6.2 Mobile Development
Forum Update on Monday, May 27th 2025

Qt 6.2 Mobile Development

Scheduled Pinned Locked Moved Solved Qt 6
7 Posts 2 Posters 675 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    hello I am developing a mobile application with Qt 6.2. I previously developed it with Qt 5.15. At that time I was able to use QtAndroidExtras, but after Qt 6 this library was removed. How can I use Android functions in Qt 6.2? Is this documentation available?

    JKSHJ 1 Reply Last reply
    0
    • ? A Former User

      hello I am developing a mobile application with Qt 6.2. I previously developed it with Qt 5.15. At that time I was able to use QtAndroidExtras, but after Qt 6 this library was removed. How can I use Android functions in Qt 6.2? Is this documentation available?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @NullByte See https://www.qt.io/blog/qt-extras-modules-in-qt-6

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        QT += core-private quick

        <QtGui/private/qtandroidextras_p.h> file not found

        I don't have idea for this

        JKSHJ 1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Any examples for request permission?

          1 Reply Last reply
          0
          • ? A Former User

            QT += core-private quick

            <QtGui/private/qtandroidextras_p.h> file not found

            I don't have idea for this

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @NullByte said in Qt 6.2 Mobile Development:

            QT += core-private quick

            <QtGui/private/qtandroidextras_p.h> file not found

            I don't have idea for this

            Hmm... it looks like the blog post might be wrong. I've posted a message to the Developers mailing list: https://lists.qt-project.org/pipermail/development/2021-September/041809.html

            Does this help instead? https://doc-snapshots.qt.io/qt6-6.2/whatsnew62.html#android

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            1
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              hello i found the solution Qt 6.2.0

              QT += core quick

              #include <QJniObject>
              #include <QJniEnvironment>
              #include <QCoreApplication>

              QJniEnvironment::
              QJniObject::
              QNativeInterface::QAndroidApplication::

              I think look so cool

              JKSHJ 1 Reply Last reply
              1
              • ? A Former User

                hello i found the solution Qt 6.2.0

                QT += core quick

                #include <QJniObject>
                #include <QJniEnvironment>
                #include <QCoreApplication>

                QJniEnvironment::
                QJniObject::
                QNativeInterface::QAndroidApplication::

                I think look so cool

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                @NullByte said in Qt 6.2 Mobile Development:

                hello i found the solution Qt 6.2.0

                QT += core quick

                #include <QJniObject>
                #include <QJniEnvironment>
                #include <QCoreApplication>

                QJniEnvironment::
                QJniObject::
                QNativeInterface::QAndroidApplication::

                I think look so cool

                Thanks for sharing!

                By the way, the blog post has been fixed. If you want some features that are not part of QJni* or QNativeInterface, the correct header is <QtCore/private/qandroidextras_p.h>

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved