[Android-development] Native Style On/Off for Widgets at 5.4-beta

Robert Iakobashvili coroberti at gmail.com
Mon Oct 13 14:34:22 CEST 2014


On Mon, Oct 13, 2014 at 3:30 PM, BogDan <bog_dan_ro at yahoo.com> wrote:
> Nope, AFAIK there is no such a thing.
>
> BogDan.
>
>
> ----- Original Message -----
> From: Robert Iakobashvili <coroberti at gmail.com>
> To: BogDan <bog_dan_ro at yahoo.com>
> Cc: android-develo. <android-development at qt-project.org>
> Sent: Monday, October 13, 2014 3:27 PM
> Subject: Re: [Android-development] Native Style On/Off for Widgets at 5.4-beta
>
> On Mon, Oct 13, 2014 at 3:24 PM, BogDan <bog_dan_ro at yahoo.com> wrote:
>> Hi,
>>
>> Set "QT_USE_ANDROID_NATIVE_STYLE" env var to 0 in your "main" function.
>>
>> BogDan.
>>
>>
>> ----- Original Message -----
>> From: Robert Iakobashvili <coroberti at gmail.com>
>> To: android-develo. <android-development at qt-project.org>
>> Cc:
>> Sent: Monday, October 13, 2014 3:20 PM
>> Subject: [Android-development] Native Style On/Off for Widgets at 5.4-beta
>>
>> Hello,
>> I'm looking at controls in 5.4 with Android-style,
>> and it is looking great -
>> thanks for this great work done.
>>
>> For some my complex custom widgets,
>> though, it's not appropriate.
>>
>> Is there any way to make it back
>> to the look of 5.3: kinda native off?
>>
>> That could be required for QPushButton
>> and others within complex context menu control, etc.
>>
>> Thank you in advance!
>>
>> Regards,
>> Robert
>
> Thanks, BogDan.
>
> The question was whether there's an option
> to off native style for certain specific widgets, not for all.
>

Qt::WA_SetStyle was working for context menus.
Something like:

// To prevent "native" Android context menu
this->menu_->setAttribute(Qt::WA_SetStyle);

Is there something like this for QPushButton, QLabel?

If this is not an option,
are there any guidelines how to change themes and
how to develop and push "my-android-style/theme"?

Thank you.



More information about the Android-development mailing list