Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rinigus/qmltest
Simple QML test codes
https://github.com/rinigus/qmltest
Last synced: 13 days ago
JSON representation
Simple QML test codes
- Host: GitHub
- URL: https://github.com/rinigus/qmltest
- Owner: rinigus
- License: mit
- Created: 2019-05-23T18:48:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T16:39:49.000Z (over 5 years ago)
- Last Synced: 2024-11-10T09:46:09.427Z (about 2 months ago)
- Language: QML
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple QML test codes
These test codes are based on examples in QML / Qt tutorials and made for
accessing basic QML functionality. Instructions are made for Debian-based
distros using Wayland, adjust as required.All tests are expected to be run using `qmlscene`. Install it and
several other packages used in the tests```
sudo apt install qmlscene qtwayland5 qml-module-qtquick2 qml-module-qtquick-window2 \
qml-module-qtlocation qml-module-qtpositioning
```Run commands from the cloned repo folder.
Hello world: `qmlscene -platform wayland test_simple.qml`
Raster map: `qmlscene -platform wayland map_raster.qml`
If MapboxGL plugin is not disabled in the distribution, it can be tested
withOnline maps: `qmlscene -platform wayland map_mapboxgl.qml`
Offline (requires OSM Scout Server running on the same device):
`qmlscene -platform wayland map_mapboxgl_offline.qml`For unofficial MapboxGL QML bindings, one can use
```
export MAPBOX_ACCESS_TOKEN=
qmlscene -platform wayland map_mapboxglqml.qml
```## Kirigami
For testing Kirigami, use Kirigami Gallery application.
First, install Kirigami and few extra packages:
```
sudo apt install qml-module-org-kde-kirigami2 qml-module-qtquick-layouts
```Clone Kirigami:
```
git clone https://github.com/KDE/kirigami-gallery.git
```and run it after using a version supported by your distribution
```
cd kirigami-gallery
git checkout b86680a227ac4356097bb22466d50fd8e7b55ae5
qmlscene -platform wayland src/data/contents/ui/BaseApp.qml
```