[Android-development] Android style in Qt 5.2RC1

BogDan bog_dan_ro at yahoo.com
Tue Dec 3 12:36:58 CET 2013



>>>   Hi,

> 
>>> 
>>>      It was my mistake, I updated the article. Long time ago (5.1.x 
> times), 
>>  Quick Controls used to use the Widgets QStyle plugin for styling. When I 
> wrote 
>>  the article I could not test it because the declarative module didn't 
> work 
>>  at all... and I assumed that noting was changed. Sadly, I was wrong! And 
> Quick 
>>  Controls are not using Widgets QStyle for styling anymore.
>> 
>>  The QtWidgets dependency in Qt Quick Controls was removed on Android by 
>>  default to minimize the application sizes, but I think it's possible to 
> 
>>  build it manually with a dependency on QtWidgets. If you do this, I 
>>  think it should use QStyle for styling the components. Note that I 
>>  haven't tested this myself and I don't know exactly how to enable 
>>  widgets dependency in controls again, but I don't think it should be 
> too 
>>  hard.
>>  
> 
> Yeah, I see it now, it was removed by 771e2babf6d201f7f6a11c93a59c152896dad8db .
> 
> I'll try to enable them on my computer and if they look ok, then I think 
> I'll enable them for Ministro repository.
> 


Well, they look ugly, let's see what we can do for 5.3 ...


>> 
>>  In the long run, we need something similar to the Android style in pure 
>>  QML, and also a solution for applications that are not using Ministro.
>> 
> 
> Be aware that extracting the Android style is a super slooow operation ...
> 



Cheers,
BogDan.



More information about the Android-development mailing list