Code Monkey home page Code Monkey logo

Comments (1)

tishion avatar tishion commented on June 6, 2024

hi @hailunchina
QCefView的初衷就是封装CEF,封装除了隐藏内部细节,还要暴露原来的cef相关的控制接口,比如cef初始化的参数等
QCefView.h:Qt封装的CEF控件,通过该对象可以实现控制cef窗口的各种属性和表现
QCefSetting.h:封装CEF相关的设置,这些都是独立的函数,可以直接调用,并且影响是全局的
QCefQuery.h:表示一个从javascript中用QCefQuery发起的请求在C++代码中的结构(参见demo)
QCefEvent.h:表示一个从C++代码中用triggerEvent触发的事件,该事件会进入Javascript被相应的listener处理(如果存在)

简单一点:
QCefSetting,控制Cef的初始化参数
native -> JS 是通过QCefEvent实现
JS -> native是通过QCefQuery实现(还有其他方法)

from qcefview.

Related Issues (20)

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.