The Following 3 Users Say Thank You to Copernicus For This Useful Post: | ||
|
2014-04-23
, 00:28
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#2
|
The Following 5 Users Say Thank You to marxian For This Useful Post: | ||
|
2014-04-24
, 04:47
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#3
|
- Use Qt Components for Android. This will require some additional macros and such in your backend code to expose it to the Qt MetaObject system (can seem labourious if you are used to widgets, where your C++ code 'just works').
- Use plain QML and design your own components. As above, plus you'll need to build your own QML components from scratch.
- Use Qt Widgets and style the widgets using stylesheets or by reimplementing paintEvent(). This might not be that much work if you use stylesheets.
|
2014-04-24
, 09:34
|
Posts: 1,397 |
Thanked: 2,126 times |
Joined on Nov 2009
@ Dublin, Ireland
|
#4
|
The Following User Says Thank You to ivgalvez For This Useful Post: | ||
|
2014-04-25
, 01:06
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#5
|
|
2014-04-25
, 03:12
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#6
|
The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
Unfortunately, the user interface is another story. I've been using the good old "Qt Widgets" library, which has indeed been ported to Android, so my UI does come up (more or less). Unfortunately, beyond being "ported", it really doesn't have a lot of support -- none of the native Android navigation controls are available, nor is Android's theming mechanism (so, the default Qt Widgets UI looks just terrible).
I've started investigating whether to switch to using QML, but there are significant downsides here, too; while that has lots of support for touch controls (with "flickability", etc), it doesn't have nearly the kind of support for classic UI controls (like pushbuttons!) that Qt Widgets has. (In the current Qt Quick Controls implementation for a button, I don't even see an option to "enable" or "disable" them.) So, I'd probably have to recreate some of the functionality I've been taking for granted with Qt Widgets. Oh, and also -- none of the native Android navigation controls are available, nor apparently is Android's theming mechanism (so, the default Qt Quick UI looks just terrible). (Also, I have no idea how much trouble it'd be to make Pierogi use QML on the N900... I'd like to avoid even thinking about that, if I can.)
No matter what, it looks like I'm going to have to get my hands dirty and learn how to manually create a style for Qt Widgets / Qt Quick Controls. I thought it'd be kind of cool to use the "Hildon Style" on Android, but it looks like anything associated with Nokia has been expunged from Qt at this point. How much work would it take to create a vaguely Hildon-like style for Qt5? (And would it be possible to apply Marxian's Hildonized Qt Components to make Android look like Maemo? )
Last edited by Copernicus; 2014-04-22 at 22:05.