Thread
:
Qt Hildon style / theme? (And other Qt frustrations)
View Single Post
Copernicus
2014-04-22 , 22:02
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#
1
Well, I've gotta say that the Qt project has been leading me through waves of joy and despair in the last few days. I've decided to try to port Pierogi to Android -- and, amazingly, after only a few days of messing around, I've already been able to bring up the app on an Android device and start talking to the IR hardware. All the keyset classes, protocol code, signals & slots, and threading run just fine!
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
.
Quote & Reply
|
The Following 3 Users Say Thank You to Copernicus For This Useful Post:
Estel
,
ivgalvez
,
sixwheeledbeast
Copernicus
View Public Profile
Send a private message to Copernicus
Find all posts by Copernicus