All Projects → papyros → Qml Material

papyros / Qml Material

Licence: other
📖 Material Design implemented in QtQuick

Programming Languages

QML
638 projects
javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
shell
77523 projects
QMake
1090 projects

Projects that are alternatives of or similar to Qml Material

Gcompris Qt
GCompris in Qt Quick
Stars: ✭ 169 (-93.08%)
Mutual labels:  qml
Asyncfuture
Use QFuture like a Promise object
Stars: ✭ 193 (-92.1%)
Mutual labels:  qml
Qtquickcontrols2
Qt Quick Controls 2
Stars: ✭ 203 (-91.69%)
Mutual labels:  qml
Telephant
A lightweight but modern Mastodon client for the desktop
Stars: ✭ 174 (-92.88%)
Mutual labels:  qml
Stratifyqml
Stratify Labs UI QML framework inspired by Twitter Bootstrap
Stars: ✭ 183 (-92.51%)
Mutual labels:  qml
Qml Rust
QML (Qt Quick) bindings for Rust language
Stars: ✭ 196 (-91.98%)
Mutual labels:  qml
Zshelf
reMarkable app: Browse and download books from Z-Library
Stars: ✭ 166 (-93.21%)
Mutual labels:  qml
Qtfirebase
An effort to bring Google's Firebase C++ API to Qt + QML
Stars: ✭ 208 (-91.49%)
Mutual labels:  qml
Browser
🌍 Cross-platform Material design web browser
Stars: ✭ 184 (-92.47%)
Mutual labels:  qml
Projecteur
Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
Stars: ✭ 199 (-91.85%)
Mutual labels:  qml
Wellchat
WellChat is a Application that is a WeChat-like APP by qml.好吧~原谅我的英语。这个一个使用qml来仿制安卓微信的Qt程序,可以运行在安卓上。
Stars: ✭ 174 (-92.88%)
Mutual labels:  qml
Learnopengl Qt3d
QML/Qt3D version of http://learnopengl.com samples
Stars: ✭ 183 (-92.51%)
Mutual labels:  qml
Vodka
VOFA+ Plugins
Stars: ✭ 198 (-91.9%)
Mutual labels:  qml
Mcmojave Kde
MacOSX Mojave like theme for KDE Plasma
Stars: ✭ 172 (-92.96%)
Mutual labels:  qml
Qtmvvm
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
Stars: ✭ 205 (-91.61%)
Mutual labels:  qml
Shell
🐚 QtQuick and Wayland shell for convergence
Stars: ✭ 168 (-93.12%)
Mutual labels:  qml
Qml Coding Guide
A collection of good practices when writing QML code
Stars: ✭ 196 (-91.98%)
Mutual labels:  qml
Stackoverflow
my answers in Stack Overflow
Stars: ✭ 211 (-91.36%)
Mutual labels:  qml
Brig
User Interface Toolkits for Node.js
Stars: ✭ 208 (-91.49%)
Mutual labels:  qml
Qml Creative Controls
QML controls for creative applications and creative coding
Stars: ✭ 199 (-91.85%)
Mutual labels:  qml

Material Design implemented in QtQuick

Join the chat at https://gitter.im/papyros/qml-material

License GitHub release Build Status GitHub issues Bountysource

This is a library of QML widgets implementing Google's Material Design. It is completely cross platform, and runs on Linux, OS X, and Windows. It may also run on iOS and Android, though those platforms have not been tested and are not currently officially supported.

Brought to you by the Papyros development team.

Dependencies

  • Qt 5.5 or higher

Per-project installation using QPM

QPM package coming soon!

Just install using:

qpm install io.papyros.material

If you want to bundle the Roboto fonts in your project, file ABOVE the include(vendor/vendor.pri) line, add the following line:

OPTIONS += roboto

Per-project installation using git submodules and QMake

Add the submodule:

git submodule add [email protected]:papyros/qml-material.git material

Add the following DEFINE and .pri file to your project:

DEFINES += QPM_INIT\\(E\\)=\"E.addImportPath(QStringLiteral(\\\"qrc:/\\\"));\"

include(material/material.pri)

Then, in your main.cpp file or wherever you set up a QQmlApplicationEngine, call QPM_INIT on the engine like this:

QQmlApplicationEngine engine;
QPM_INIT(engine)
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

You should then be able to import Material 0.3 from your QML.

To optionally bundle the Roboto fonts in your project, add this line ABOVE the previously added include():

OPTIONS += roboto

Per-project installation using git submodules and CMake

Add the submodule:

git submodule add [email protected]:papyros/qml-material.git material

Add the following lines to your project's CMakeLists.txt, and make sure you add ${VENDOR_SOURCES} to your add_executable line:

add_definitions("-DQPM_INIT\\(E\\)=E.addImportPath\\(QStringLiteral\\(\\\"qrc:/\\\"\\)\\)\\;")

include(material/vendor.cmake)

Then, in your main.cpp file or wherever you set up a QQmlApplicationEngine, call QPM_INIT on the engine like this:

QQmlApplicationEngine engine;
QPM_INIT(engine)
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

You should then be able to import Material 0.3 from your QML.

Check out this example of an app using QML Material and CMake if you need further guidance.

System-wide installation

From the root of the repository, run:

mkdir build; cd build
qmake ..
make
make install # use sudo if necessary

Now check out the demo folder to see how to use Material Design from QtQuick!

Icons usage

When using the Icon component or the iconName property, qml-material looks for icons in the form of qrc:/icons/<category>/<name>.svg. Only a core set of icons used by qml-material icons are actually bundled with qml-material. To use icons in your own programs, you can either manually create a qrc file, or you can create icons.yml file and use the icons.py script from qml-material.

To use the icons.py script, create a file called icons.yml that looks like this:

icons:
  - action/settings
  - alert/warning
  - ...

Run icons.py, located in the scripts folder of the repository. This will download the latest version of all the icons listed in this file, storing them in a folder called icons. It also generates a resource file called icons/icons.qrc, which you should add to your QMake or CMake project.

Now whenever you add icons to the icons.yml file, just rerun icons.py and the new icons will be downloaded. To update your icons, just delete the icons folder and rerun icons.py.

Licensing

QML Material 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 2.1 of the License, or (at your option) any later version.

The Material Design icons by Google are released under an Attribution 4.0 International license. The icons are directly copied from Google's GitHub repository at https://github.com/google/material-design-icons.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].