Giter Site home page Giter Site logo

fluid's Introduction

Fluid

ZenHub.io

License GitHub release Build Status GitHub issues Maintained

Fluid is a collection of cross-platform QtQuick components for building fluid and dynamic applications.

Dependencies

Qt >= 5.7.0 with at least the following modules is required:

System-wide installation

First, if you want to include the Material Design icons used with the Icon component, run:

./scripts/fetch_icons.sh

This will clone the Google repository holding the icons and copy the SVG icons into the icons directory.

From the root of the repository, run:

mkdir build; cd build
cmake .. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
make install # use sudo if necessary

On the cmake line, you can specify additional configuration parameters:

  • -DCMAKE_INSTALL_PREFIX=/path/to/install (for example, /opt/liri or /usr)
  • -DCMAKE_BUILD_TYPE=<build_type>, where <build_type> is one of:
    • Debug: debug build
    • Release: release build
    • RelWithDebInfo: release build with debugging information

Per-project installation using QMake

First, clone this repository.

Run the icon script located here:

./scripts/fetch_icons.sh

In your project file, include the fluid.pri file:
include(path/to/fluid.pri)

Then, in your main.cpp file or wherever you set up a QQmlApplicationEngine:

  • add this include directive :
    #include "iconthemeimageprovider.h"
  • add the resources files to your QQmlApplicationEngine import paths :
    engine.addImportPath(QStringLiteral("qrc:/"));
  • register fluid's image providers to the engine : engine.addImageProvider(QLatin1String("fluidicons"), new IconsImageProvider()); engine.addImageProvider(QLatin1String("fluidicontheme"), new IconThemeImageProvider());
  • and after that you can load your qml file:
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

Licensing

Licensed under the terms of the Mozilla Public License version 2.0.

fluid's People

Contributors

ibelieve avatar okcerg avatar plfiorini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.