It's a kind of magic

340 views
Skip to first unread message

BogDan Vatra

unread,
Mar 17, 2012, 4:04:57 PM3/17/12
to android-qt
Hello folks,

I'd like to share with you current Android look&feel for Qt, because
the images say more than a thousands words, I upload a short movie
here: http://youtu.be/2X8R3lZc4EI .

How it works now, and how it will work in the end:
Now I create an android application to extract the same look&feel
informations into a json file (these infos are the same infos used by
android to draw the controls). The extraction takes some time (5-10
seconds), so in the end this code will be integrate within Ministro,
which will extract ONLY ONCE these infos into a central read only
location and it will pass the location path to your application
android platform plugin.
I created a qt style plugin which parse the json file and extract the
need infos to draw the Qt controls, as you may seen they look the same
as android ones! The parsing is fast 50-100ms. In the end the style
plugin will be integrated into android platform plugin and it will be
the default style plugin for android.

The style plugin is *NOT* finished yet, only a few controls are
supported, is a very slow and painful process to add a control. First
you have to check how Android draws the control, extract the needed
information, store it into the json file, then use it to paint the
controls. I hope in a few days to cleanup the code, and to push it
into a new branch ("style-plugin"). If anyone wants to help, just send
me a mail.

I hope this plugin will be used also by QML components to draw the
controls, this way Qt applications will look&feel the same as any
ordinary Android apps, no matter if they are made using QML controls
or classic QtWidgets.

Thank you for your time !

Cheers,
BogDan.

Andrius da Costa Ribas

unread,
Mar 17, 2012, 4:36:24 PM3/17/12
to andro...@googlegroups.com

Awesome work! (no need to say more than that)

Adam Pigg

unread,
Mar 17, 2012, 4:38:18 PM3/17/12
to andro...@googlegroups.com
Yes, very good.

Also, could i possibly pester you to get a reply on my bug reports? :)

Thanks for the great work

BogDan Vatra

unread,
Mar 17, 2012, 4:44:57 PM3/17/12
to andro...@googlegroups.com
Hi Adam,

Which ones ?

Cheers,
BogDan.

P.S. If you've found a bug, please use
https://sourceforge.net/p/necessitas/tickets/ to report it, I'm afraid
that I don't have enough time to check all the post on this mail list.

Adam Pigg

unread,
Mar 17, 2012, 4:46:09 PM3/17/12
to andro...@googlegroups.com
Hi BogDan

161 and 162 on the ticket list

Thanks

BogDan Vatra

unread,
Mar 17, 2012, 5:15:18 PM3/17/12
to andro...@googlegroups.com
Hi Adam,

Sadly for 161 I don't have an answer now, and I'm afraid that I don't
have enough time to check it now.

Cheers,
BogDan.

roywillow-em

unread,
Mar 18, 2012, 6:25:43 AM3/18/12
to andro...@googlegroups.com
Hi BogDan:
Awesome work! I have considered learning to write a style myself, now I can focus on other jobs.
Will this style automatically downloaded and installed by Ministro? Do I have to do some changes to my previous apps?
Best regards.
Roy Willow

BogDan Vatra

unread,
Mar 18, 2012, 9:28:58 AM3/18/12
to andro...@googlegroups.com
Hi Roy,

Thanks, if you have time, you can join me, it is a lot work to do on
that plugin !
You don't need to change anything to your existing apps, it will be a
seamless transition !

Cheers,
BogDan.

Tyler Mandry

unread,
Mar 30, 2012, 8:23:17 PM3/30/12
to andro...@googlegroups.com
Hey BogDan, sounds great! Does this look & feel extraction happen on the end user phone? Will it adapt the look to whatever the user's current theme is?

Also, for those developers wishing to bundle Qt with their apps (not use Ministro,) will this sort of functionality be integrated into the app, or have we not gotten that far yet?

BogDan Vatra

unread,
Apr 2, 2012, 3:20:24 AM4/2/12
to andro...@googlegroups.com
Hi Tyler,

În data de 31 martie 2012, 03:23, Tyler Mandry <tma...@gmail.com> a scris:
> Hey BogDan, sounds great! Does this look & feel extraction happen on the end
> user phone? Will it adapt the look to whatever the user's current theme is?
>

Yes, that's the idea !

>
> Also, for those developers wishing to bundle Qt with their apps (not use
> Ministro,) will this sort of functionality be integrated into the app, or
> have we not gotten that far yet?
>

No I didn't got that far :(

Cheers,
BogDan.

Reply all
Reply to author
Forward
0 new messages