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. JSONLoader reading from PHP

JSONLoader reading from PHP

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 630 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.
  • R Offline
    R Offline
    renatobibiano
    wrote on last edited by
    #1

    Hi all,

    We have an application that reads JSON from an external file to fill a ListView. Our code is:
    @ListView {
    id: channelList
    anchors.fill: parent
    currentIndex: -1
    JSONLoader {
    url: ... //FILE
    onLoaded: {
    channelList.model = data
    }
    }
    }@

    To test, we put a JSON file directly in the URL attribute. It works!

    But when I changed to a PHP call to my server (that returns an echoToJson) it gives me nothing. I think we need to decode this JSON string somehow, but I don't know how.

    Can you help me?

    Regards,
    Renato.

    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