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/

set the path to the qml-pdwidgets directory right in the *.pro file

e.g.

include(../qml/de_igh_pd.pri)

and add "qrc:///" as QML import path.

Alternatively, install all qml files (including the qmldir file) to a folder <DIR>/de/igh/pd.2
and set QML2_IMPORT_PATH to <DIR>.

<del>

I tried to build these as a qml-module by adding:

"module de.igh.pd" to qmldir

and adding

QQmlEngine::addImportPath(const QString &path)

to main.cpp but that didn't work.

Maybe in combination with de.igh.pd there might be a problem.

Now all the pdWidgets qml files go into ressources and can be accessed as:

import "qrc:/de/igh/pd"


Hm, 2020-06-01
</del>

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
```
