1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-26 04:33:06 +01:00

QtWebEngine initialize is not required if using AA_ShareOpenGLContexts

This commit is contained in:
Elias Steurer 2019-11-23 11:40:52 +01:00
parent 1456610bd4
commit 72670e72cc
2 changed files with 2 additions and 7 deletions

View File

@ -20,9 +20,6 @@ App::App()
QQuickWindow::setTextRenderType(QQuickWindow::TextRenderType::NativeTextRendering);
// Qt < 6.0 needs this init QtWebEngine
QtWebEngine::initialize();
qRegisterMetaType<GlobalVariables*>();
qRegisterMetaType<ScreenPlayManager*>();
qRegisterMetaType<Create*>();

View File

@ -21,16 +21,14 @@
int main(int argc, char* argv[])
{
QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QApplication app(argc, argv);
// This gives us nice clickable output in QtCreator
qSetMessagePattern("%{if-category}%{category}: %{endif}%{message}\n Loc: [%{file}:%{line}]");
// Qt < 6.0 needs this init QtWebEngine
QtWebEngine::initialize();
// If we start with only one argument (app path)
// It means we want to test a single wallpaper
QStringList argumentList = app.arguments();