Solved Unknown Module androidextras when building under Windows
-
Re: Project ERROR: Unknown module(s) in QT: macextras
Hi,
I am working on an application which should run on Windows/Linux/Android.
In my .pro File I included androidextras.
I have a c++ file where I am including with:
#include <QtAndroidExtras>
Now I have the problem that when I am building under Windows it says
UnknownModules in QT: androidextras
Any idea how to solve this?
-
@JHanuja Use in .pro
android { QT += androidextras }
And in the .h and .cpp you use you must use:
#ifdef Q_OS_ANDROID #include <QtAndroidExtras> #else // other includes #endif
-
Ok thanks that worked.