Skip to content

GendoIkari/qmljson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QmlJson

QmlJson component for QtQuick applications.

Build

qmake
make
make install

Installation

Copy in your qml import path the folder QmlJson inside plugins or add to your import path plugins.

Example

import QtQuick 2.8
import QtQuick.Window 2.2
import QmlJson 1.0

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    QmlJson {
        id: posts
        source: "https://jsonplaceholder.typicode.com/posts"
        interval: 2000
        polling: true
        onDataChanged: console.log("RELOAD")
    }

    ListView {
        anchors.fill: parent
        model: posts.data
        delegate: Text {
            text: modelData.title
        }
    }
}

About

QmlJson component for QtQuick applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published