關於QWebEngineView在老顯卡的顯示和閃屏問題的解決方案

1、支持老老顯卡的設置屬性

	QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
	//QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);  

	QGuiApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
	QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
	QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);

2、加載錯誤的解決方法

拷貝opengl32sw.dll文件,改名爲opengl32.dll就可以。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章