From 6e95a8d7ac1d1122d2cce3a56b37e3cebd7baf69 Mon Sep 17 00:00:00 2001 From: Barry <870709864@qq.com> Date: Sun, 28 Oct 2018 23:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95opengl=20es2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0ce4600..33a3bb8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,10 @@ int main(int argc, char *argv[]) { + QApplication::setAttribute(Qt::AA_UseDesktopOpenGL); + //QApplication::setAttribute(Qt::AA_UseOpenGLES); + //QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL); + QApplication a(argc, argv); qputenv("QTSCRCPY_ADB_PATH", "G:\\mygitcode\\QtScrcpy\\src\\adb.exe");