I have an Android-specific fix in my Qt application, and I want that code to be compiled only when building for Android.
Is there an #if
or #ifdef
that will do that?
I have an Android-specific fix in my Qt application, and I want that code to be compiled only when building for Android.
Is there an #if
or #ifdef
that will do that?
Yes, you can find it in the documentation, so just use:
#ifdef Q_OS_ANDROID
© 2022 - 2024 — McMap. All rights reserved.