From 3a06b38b23e3a713e8a8287dd1a158c58a80530d Mon Sep 17 00:00:00 2001 From: kelteseth Date: Thu, 13 Sep 2018 20:23:12 +0200 Subject: [PATCH] Add webengine --- ScreenPlayWindow/SPWmain.cpp | 4 +++- ScreenPlayWindow/ScreenPlayWindow.pro | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ScreenPlayWindow/SPWmain.cpp b/ScreenPlayWindow/SPWmain.cpp index b7b8f2ee..2b1bc09f 100644 --- a/ScreenPlayWindow/SPWmain.cpp +++ b/ScreenPlayWindow/SPWmain.cpp @@ -3,14 +3,16 @@ #include #include #include +#include int main(int argc, char* argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - + QApplication::setAttribute(Qt::AA_UseDesktopOpenGL); QApplication a(argc, argv); ScreenPlaySDK sdk; + QtWebEngine::initialize(); // 6 parameter + 1 OS working directory default paramter QStringList argumentList = a.arguments(); diff --git a/ScreenPlayWindow/ScreenPlayWindow.pro b/ScreenPlayWindow/ScreenPlayWindow.pro index 3cd7b11c..5fdeaaee 100644 --- a/ScreenPlayWindow/ScreenPlayWindow.pro +++ b/ScreenPlayWindow/ScreenPlayWindow.pro @@ -1,5 +1,5 @@ TEMPLATE = app -QT += qml quick quickcontrols2 widgets core +QT += qml quick quickcontrols2 widgets core webengine CONFIG += c++17 CONFIG += qtquickcompiler msvc: LIBS += -luser32