Creating dynamic content that is delivered by a Rest API

  • Inspired by the "QT everywhere Android example app":, I would like to build something similiar, but with a dynamic factor.
    The Android example app combines a bunch of other apps in one app and you can switch between them. What I want to do now, is to be able to manage those apps dynamically. So like give the user a kind of integrated app store, from which he can install and uninstall apps, which are then placed or removed from the app overview.

    My first thought was to use "Qt.createQmlObject" in order to create Qml Objects from a string that is delivered by a Rest API. But I dont really know how to "talk" to the Rest API with QML. I guess I have to mix it up with c++ or javascript, but since I am totally new to QT I dont really know how that would work.

    So what I need to know, how can I:

    • Dynamically build from a string list of app names (delivered by the Rest API) a list for the user, where he can choose which app to start (I think a list for the start is enough, those fancy islands can come later ;))
    • Dynamically start the new app inside my own app

    Do you have any hints for me on this topic? Am I on the right way with using "Qt.createQmlObject"? Would you do it with a totally different way?
    For the part with mixing QML and c++ or javascript in order to get a string from a Rest API, I would really appreciate a little example code if someone could spare some time for it.

    Thanks in advance :)

  • Is there anything I can add to clarify things or is everything I wrote just rubbish? :)

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    I don't think you wrote rubbish, it could be that no forum user knows how to help you.

    You can try to write to the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)

  • K thx, I will give it a go :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.