Embedding QML into Android application
Alajärvi, Konsta (2024)
Alajärvi, Konsta
2024
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2024082924529
https://urn.fi/URN:NBN:fi:amk-2024082924529
Tiivistelmä
The idea for this thesis was to talk about a new feature in Qt called Embedding QML into Android application. Shortly this means to embed a programming language and framework into another, in this case QML and with-it Qt Quick are embedded into Android application. This is done to get something out of QML and Qt Quick that Android does not provide, which would be 3D models and other convenient features of Qt Quick as well as the declarative QML language.
This thesis goes over the requirements and background information needed to understand what this feature is about and what the various technologies and tools involved in this feature are.
QML with Qt Quick features get embedded into Android applications with the help of new API called QtQuickView. This API instantiates a QQuickView with a given QML component and embeds it to itself, which can then be used as any other View object within Android application. Tämän opinnäytetyön aiheena oli tutkia Qt-kehitysympäristön uutta ominaisuutta, jonka avulla QML-ohjelmointikielellä kuvattu käyttöliittymäkomponentti voidaan sulauttaa Kotlin- ja Java-pohjaisiin Android-sovelluksiin. Opinnäytetyö sisälsi myös kahden uuden, tätä ominaisuutta esittelevän esimerkkisovelluksen kehitystyön.
This thesis goes over the requirements and background information needed to understand what this feature is about and what the various technologies and tools involved in this feature are.
QML with Qt Quick features get embedded into Android applications with the help of new API called QtQuickView. This API instantiates a QQuickView with a given QML component and embeds it to itself, which can then be used as any other View object within Android application.