dylan-d-guo / QCefWidget

Provide a Qt widget to render and interact with webpage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

>>> 中文版

The QCefWidget project provide a widget that is used to view webpage.

Support:

✅ Supports both CEF OSR and non-OSR mode;

✅ Show background transparent webpage in irregularity window;

✅ Javascript and Qt interaction;

✅ OpenGL graphics acceleration;

✅ Third-party input method software;

✅ Perfect exit app without any CEF assert/exception in debug/release mode;

✅ Separate CEF rendering process and plugin process;

✅ Support Adobe Flash without any warnning, eg "Control-click to run Adobe Flash Player".

✅ Drag/Drop frameless window like Electron throught setting CSS property.


Build Instruction

  1. Download and install CMake

  2. Download and install Qt SDK from Qt Downloads

  3. Download CEF binary distribution Chromium Embedded Framework (CEF) Automated Builds and extract it to dep directory, for example:

    root
    ├─dep
    │  └─cef_binary_80.1.15+g7b802c9+chromium-80.0.3987.163_windows32
    ├─src
    └─test
    
  4. Update the config.cmake to set the required build configurations

  5. Using CMake to build the project, for example:

    mkdir build && cd build
    cmake .. && cmake --build .

Usage

QCefWidgetTest is a perfect demo about how to use QCefWidget in test folder.

screenshot1 on windows

screenshot2 on windows

About

Provide a Qt widget to render and interact with webpage.

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 80.3%Language:HTML 12.8%Language:CMake 2.9%Language:CSS 2.2%Language:C 0.9%Language:JavaScript 0.5%Language:Batchfile 0.3%