Qt WebEngine seems to be initialized from a plugin.
-
I upgraded from Qt6.4.3 to Qt6.5 and now I get this message when I run my application:
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute and QSGRendererInterface::OpenGLRhi using QQuickWindow::setGraphicsApi before constructing QGuiApplication.
Everything still seems to work fine though. I did not get this message with Qt6.4.3. From Googling it seems this is an old bug the reappears.
My code initializes QtWebView just before create QGuiApplication as the dodumentation states.
QtWebView::initialize(); QApplication app(argc, argv); qSetMessagePattern("%{time HH:mm:ss.zzz} %{type} %{function}'%{line} %{message}"); QIcon::setThemeName("spiralfun");
-