Qt 6.2.1 QAndroidService No such file or directory
-
perhaps file available only for android and I should use some ifdef for exclude line from code for Windows?
@Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:
perhaps file available only for android and I should use some ifdef for exclude line from code for Windows?
Of course it is Android only
Please add#ifdef Q_OS_ANDROID
around all android specific code! -
-
@Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:
looks like related with
Or simply take a look at QAndroidService for Qt 6 documentation => https://doc.qt.io/qt-6/android-services.html
You will find all you need to create an Android service with Qt 6 ;) -
@Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:
looks like related with
Or simply take a look at QAndroidService for Qt 6 documentation => https://doc.qt.io/qt-6/android-services.html
You will find all you need to create an Android service with Qt 6 ;)@KroMignon yep I saw this doc
but i had problem with including QAndroidService in my cpp code
but after adding
QT += core-private
and using
#include <QtCore/private/qandroidextras_p.h>
instead of
#include <QAndroidService>
project start compile