Git Product home page Git Product logo

live2d-qt's Introduction

live2d-qt

使用QWebEngineView在桌面上显示live2d模型。

原理

使用QWebEngineView加载一个只包含live2d模型的html页面,设其为全屏,并设置窗口背景透明,忽略鼠标键盘事件。

注意

  • 使用了X11提供的XShapeCombineRectangles()实现鼠标键盘操作的穿透,因此程序的通用性不强。
  • 设置了鼠标键盘操作的穿透,因此网页上live2d的交互效果无法实现。
  • 使用QWebEngineView,测试过程中CPU占用10%以上,影响较大。
  • 托盘图标左键点击可隐藏/显示,右键切换模型或者退出。

相关链接

该程序的最重要部分其实是live2d的js部分,直接引用了以下项目提供的链接:

live2d-qt's People

Contributors

whoisnian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wuyadie

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.