glaucopgomes / qml-extras

Some extra classes and utilities to make QML even more awesome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QML Extras

Build Status

Extra types and utilities to make QML even more awesome

Developed by Michael Spencer

Install

qmake
make check
make install

Example

Promise:

import QtQuick 2.3
import Material.Extras 0.1

Item {
    function makePromise() {
        var myvalue = "";

        var promise = new Promises.Promse();
        promise.info.myinfo = "cool info";
        promise.then(function( data, info ) {
                // send data to the next step
                return info.myinfo + " " + data;
        });

        promise.done(function( data, info ) {
                // do something with the data of resolve(...)
        });

        promise.error(function( error, info ) {
                // do something with the data of reject(...)
        });
    }
}

Licensing

QML Extras is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

About

Some extra classes and utilities to make QML even more awesome

License:GNU Lesser General Public License v2.1


Languages

Language:JavaScript 50.4%Language:QML 46.8%Language:C++ 1.9%Language:QMake 0.5%Language:IDL 0.4%