Git Product home page Git Product logo

slime-engine's Introduction

Slime Engine

A QML webview wrapper to support both QtWebEngine and Oxide through one simple QML API.

Installation

Dependencies

  • Qt >= 5.5 (QtQuick >= 2.5)

Either ...

  • QtWebEngine >= 1.2

... or ...

  • Oxide >= 1.15 and Ubuntu.DownloadManager >= 0.1

Build and Install

git clone https://github.com/tim-sueberkrueb/slime-engine
cd slime-engine
qmake && make
sudo make install

Usage

Try the demo:

cd slime-engine
qmlscene demo/Demo.qml

Minimal example:

import QtQuick 2.5
import SlimeEngine 0.2

WebView {
    engine: Slime.detectEngine()
    // engine: WebEngine.Oxide
    // engine: WebEngine.QtWebEngine
    url: "http://github.com"
}

Remember to call QtWebEngine::initialize(); from C++ when you're using QtWebEngine.

Releases

  • v0.2
    • Current development release
    • Code cleanup and removed a lot of boilerplate code
    • Bug fixes
    • API changes:
      • NewViewRequest.openIn() and WebView.openRequest are no longer supported. Set WebView.request on creation of a new view instead.
      • Slime.backend was renamed to Slime.engineName
      • Slime.backendDetected was renamed to Slime.engineDetected
      • Slime.detectBackend() was renamed to Slime.detectEngine()
    • Slime no longer automatically detects the webengine
  • v0.1
    • Initial alpha preview
    • There are some known bugs (fixed in v0.2) - do not use in production

Note: There is no stable realease, yet!

Copyright and License

(C) Copyright 2016 by Tim Süberkrüb

Slime Engine 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.

See LICENSE for more information.

slime-engine's People

Contributors

timsueberkrueb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wyyrepo

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.