Getting Started with Enginio using Qt Quick

Setup a Qt Quick 2 application project

Create a new Qt Quick 2 Application.

Qt Creator can be used to create a template. File ⇒ New File or Project ⇒ Applications ⇒ Qt Quick 2 Application

Initialize Enginio Client

To use Enginio's QML API, the Enginio library must be imported.

import Enginio 1.0

Initialize the EnginioClient with the backend id value, which can be copied from the Dashboard.

Go to Dashboard ⇒ The Backend home-view ⇒ See ’Keys box’ ⇒ Copy backend id value.

EnginioClient {
    id: enginio
    backendId: "YOUR_OWN_BACKEND_ID"

Store the First Object

Now an object can be stored with Enginio. First, create an object in JSON format and fill it with data as needed. Then call create on the client with the JSON object as a parameter.

Component.onCompleted: {
    var city = {
        objectType: "",
        name: "Helsinki",
        population: 606000

Check the Enginio dashboard for the newly created object.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.