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.
-
Download and install CMake
-
Download and install Qt SDK from Qt Downloads
-
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
-
Update the config.cmake to set the required build configurations
-
Using CMake to build the project, for example:
mkdir build && cd build cmake .. && cmake --build .
QCefWidgetTest is a perfect demo about how to use QCefWidget in test
folder.