I have a Qt Android application, and I want to set its theme to be Holo (i.e. the dark variant, not Holo Light). Here's a comparison between Holo Dark theme (left), and how my application looks now (right):
I'm using Qt 5.2.0, and I'm using Qt/C++ (i.e. not QML), but I'm interested for any way that works, regardless of Qt version or whether it's QML or C++.
Edit: I know that using Ministro, it will create pixmaps for all widgets using the "native" theme, but is it possible to tell Ministro which theme to use?
Edit: Holo Dark can now be selected as of Qt 5.4 by adding android:theme="@android:style/Theme.Holo"
to <application>
in AndroidManifest.xml.
This works with Qt 5.4, but not with Qt 5.2, with Qt 5.2, the theme is always the phone's default theme no matter what you specify for android:theme
in the manifest.
So in AndroidManifest.xml, find the <application>
node, and change it to:
<application android:theme="@android:style/Theme.Holo" ...
This is not available for the moment for QtQuickControls, although it was brought to Qt 5.2 for the QtWidgets.
The former is on BogDan's TODO list for 5.3. See his blog for details:
Qt on Android Episode 1
Here you can find a couple of screenshots from my friend's system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With