Presently I have to make separate Qt projects for Android and iPhone as androidextras module has to be included in .pro file which causes error when building for iOS.
Can I include modules in .pro file conditionally according to target device?
Presently I have to make separate Qt projects for Android and iPhone as androidextras module has to be included in .pro file which causes error when building for iOS.
Can I include modules in .pro file conditionally according to target device?
You can use conditional branching in pro files.
android {
QT += androidextras
}
Have a look to this similar question: How to specify libraries only for Android platform build in .pro file?