Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Creating dynamic content that is delivered by a Rest API
Forum Updated to NodeBB v4.3 + New Features

Creating dynamic content that is delivered by a Rest API

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DerMas
    wrote on last edited by
    #1

    Inspired by the "QT everywhere Android example app":http://www.youtube.com/watch?v=-SJh3Xy2QKI, 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 :)

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerMas
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DerMas
          wrote on last edited by
          #4

          K thx, I will give it a go :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved