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
Defaultstyle 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
Materialtheme.I tried explicitly specifying the
Defaulttheme in theqtquickcontrols2.conffile, as well as adding this in themain()function:QQuickStyle::setStyle("Default"); QQuickStyle::setFallbackStyle("Default");But still on Android it's giving me the
Materialtheme. I was able to specifyFusionand well, got the Fusion theme on Android.How can I get the
DefaultUI 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
Defaultstyle 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
Materialtheme.I tried explicitly specifying the
Defaulttheme in theqtquickcontrols2.conffile, as well as adding this in themain()function:QQuickStyle::setStyle("Default"); QQuickStyle::setFallbackStyle("Default");But still on Android it's giving me the
Materialtheme. I was able to specifyFusionand well, got the Fusion theme on Android.How can I get the
DefaultUI theme to work on Android?