Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an #ifdef in Qt to determine if we're building for Android

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?

like image 270
sashoalm Avatar asked Apr 12 '14 06:04

sashoalm


People also ask

Is there any or is there an?

Which One Should You Use: Is There A or Is There Any? We must use 'a' with singular countable nouns and 'any' with uncountable nouns. We use 'is' with both singular countable nouns and uncountable nouns.

Is there or are there grammar?

Use there is when the noun is singular (“There is a cat”). Use there are when the noun is plural (“There are two cats”).

Is there are there example?

There is one table in the classroom. There are three chairs in the classroom. There is a spider in the bath. There are many people at the bus stop.

What is correct is there any or are there any?

The same rule holds true when you're asking a question. If the noun is plural, use “Are there any.” If the noun is singular, use “Is there any.”


1 Answers

Yes, you can find it in the documentation, so just use:

#ifdef Q_OS_ANDROID
like image 163
lpapp Avatar answered Oct 02 '22 13:10

lpapp