Qt 6.2 Mobile Development
-
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?
-
@NullByte See https://www.qt.io/blog/qt-extras-modules-in-qt-6
-
QT += core-private quick
<QtGui/private/qtandroidextras_p.h> file not found
I don't have idea for this
-
Any examples for request permission?
-
@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
-
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
-
@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*
orQNativeInterface
, the correct header is<QtCore/private/qandroidextras_p.h>