Code Monkey home page Code Monkey logo

easy.qmldir.qbs's Introduction

easy.qmldir for Qbs

Made by Ukrainian License

Never write a qmldir file manually again! This Qbs module generates it automatically.

Features

  1. (Almost) full support of every kind of declaration for Module Definition qmldir Files.
  2. Automatic listing of QML objects and JS resources.
  3. Detection of singletons via pragma Singleton.

Example

DynamicLibrary {
	Depends { name: 'Qt.qml' }
	Depends { name: 'easy.qmldir' }  // depend on the module

	name: 'mega-controls-plugin'

	files: ['src/plugin.h']

	Group {
		name: 'QML files'
		files: [
			'qml/Button.qml',
			'qml/Slider.qml',
			'qml/Toggle.qml',
		]

		fileTags: ['easy.qmldir.inputs']  // tag your QML or JavaScript files
	}

	Qt.qml.importName: 'mega.controls'
	Qt.qml.importVersion: '2.0'

	easy.qmldir.classname: 'mega::ControlsPlugin'  // optionally, specify the class name

	// other qmldir facilities are also available (see below)
}

This will produce the following qmldir file:

module mega.controls
plugin mega-controls-plugin
classname mega::ControlsPlugin
typeinfo plugins.qmltypes

Button 2.0 Button.qml
Slider 2.0 Slider.qml
Toggle 2.0 Toggle.qml

Looking for more?

Check the example folder or simply run this from the repository’s root:

qbs run

Documentation

Check the documentation for installation and configuration guides.

easy.qmldir.qbs's People

Contributors

gooroo avatar

Stargazers

 avatar  avatar

Watchers

 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.