This is an example application for pdwidgets qml integration.
It requires a QT-Version > 5.10.

It runs against the pdserv example which can be found in the "pdserv-example"
repo.

compile with: gcc -lpdserv example-st.c -o example

https://gitlab.com/etherlab.org/pdserv
https://download.opensuse.org/repositories/science:/EtherLab/


How to build for android:
use the android toolchain docker container from
registry.gitlab.com/etherlab.org/build-container-factory/android:pdqmlwidgets

```
mkdir build && cd build
qmake PDCOMPREFIX=/opt/kdeandroid-arm64/ ANDROID_ABIS=arm64-v8a ../qmltest.pro
make -j$(nproc) apk_install_target
androiddeployqt --input android-pdqmltest-deployment-settings.json --output android-build/
```

you'll find the apk file here: build/android-build//build/outputs/apk/debug/android-build-debug.apk

for 32 bit, set ANDROID_ABIS=armeabi-v7a and PDCOMPREFIX=/opt/kdeandroid-arm/ instead


Build for android using CMake:

unfortunately, the build container has some requirements regarding the directory structure.
We'll make a build directory with a src, build-arm and build-arm64 subdir.
In the src subdir, make a symlink to the qml_test dir.

```
mkdir -p build_example/{src,build-arm,build-arm64}
cd build_example
ln -s ../../qml_test src/qml_test

/opt/helpers/build-cmake qml_test $PWD/src/qml_test \
            -DQTANDROID_EXPORTED_TARGET="QmlTest" \
            -DANDROID_APK_DIR=$PWD/src/qml_test/android
/opt/helpers/create-apk qml_test
```


Notes for windows Virtual machine users:

QtCharts works with OpenGL backend, which is likely not available in a virtual machine.
`opengl32sw.dll` is your friend, see https://wiki.qt.io/MesaLlvmpipe
Place this library next to your application and set `QT_OPENGL=software` and `QSG_RHI_BACKEND=opengl`.
