Qt Quick Controls 1 Platform Notes
Warning: The Qt Quick Controls 1 module is deprecated since Qt 5.12. Use the latest Qt Quick Controls module instead.
This page contains platform specific notes for creating applications that use Qt Quick Controls 1.
Qt 5.4 introduced a native Android style for Qt Quick Controls.
Note: The Android style requires Android 3.0 (API level 11) or later.
The following example sets a dark Holo theme, and the result can be seen in the screenshot above.
<manifest ...> <application ... android:theme="@android:style/Theme.Holo"> ... </application> ... </manifest>
The Action Bar is a special Android control that provides many key features including various navigation modes, actions, an options menu, a back button, and also displays the application icon and title.
Unlike Qt Widgets, Qt Quick Controls 1 do not use the native action bar on Android. ToolBar and MenuBar are offered as a cross-platform replacement. They are unified to a single "action bar" when assigned to the appropriate ApplicationWindow properties.
The advantage of a non-native ToolBar is that it can contain any child items declared in QML. Just to name a few possibilities:
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.