How to use the `Default` theme on Android
-
I'm working adding a GUI to a ray tracing application that I wrote and I'm using Qml for it. Right now I've been building it on a Linux desktop, but also testing it out on an Android tablet (Kindle Fire), and have plans to run it on an iPad too. On the desktop, it's using the
Default
style for UI theming: https://doc.qt.io/qt-5/qtquickcontrols2-default.html . I like it and have been building other custom controls off of it.But when trying to run on Android it's been using the
Material
theme.I tried explicitly specifying the
Default
theme in theqtquickcontrols2.conf
file, as well as adding this in themain()
function:QQuickStyle::setStyle("Default"); QQuickStyle::setFallbackStyle("Default");
But still on Android it's giving me the
Material
theme. I was able to specifyFusion
and well, got the Fusion theme on Android.How can I get the
Default
UI theme to work on Android? -
I'm working adding a GUI to a ray tracing application that I wrote and I'm using Qml for it. Right now I've been building it on a Linux desktop, but also testing it out on an Android tablet (Kindle Fire), and have plans to run it on an iPad too. On the desktop, it's using the
Default
style for UI theming: https://doc.qt.io/qt-5/qtquickcontrols2-default.html . I like it and have been building other custom controls off of it.But when trying to run on Android it's been using the
Material
theme.I tried explicitly specifying the
Default
theme in theqtquickcontrols2.conf
file, as well as adding this in themain()
function:QQuickStyle::setStyle("Default"); QQuickStyle::setFallbackStyle("Default");
But still on Android it's giving me the
Material
theme. I was able to specifyFusion
and well, got the Fusion theme on Android.How can I get the
Default
UI theme to work on Android?