To provide more uniform usage, style, defaults and control of qml elements.
Set environment variables:
dev_qt_base
where Qt versions can be found in subdirs like5.9.1
.
Set CMake variables:
UL_QT5_VERSION
to e.g.5.9.1
UL_QT_COMPILER_SUBDIR
to e.g.gcc_64
- For an up-to-date usage blueprint please refer to the AppWindow.qml of testapp. You might especially just copy and paste the Ext... declarations block at the beginning to get started.
- Remember to keep your qml.qrc file complete.
- Controls usage
in order to access the desired custom controls by appending an underscore
import controls // and import controls/<style>
_
to any of the known built-in controls. (Of course don't mix different<style>
s in one app.) Built-in controls can be used in parallel (without a trailing_
), but you should make clear, whether you use the Controls 1 or 2 version. E.g. it is good practice to writein order to write e.g. QC1.Button instead of Button.import QtQuick.Controls 1.5 as QC1 import QtQuick.Controls 2.1 as QC1
Please note that only the 'minimal' style is always in up-to-date shape. If you want to use QC1_def or QC2_def you might first need to repair these according to 'minimal' or add the desired components first. Of course the idea is still, that QC2_def (and QC1_def as long as it is not considered deprecated) contains common stuff and styles are build based on that.
At the moment the testapp is working under Qt 5.15.2. Also on Android, with a certain combination of versions of Java, NDK, and so on, example configuration see cmake-android.sh.