Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Qt WebEngine seems to be initialized from a plugin.
Forum Updated to NodeBB v4.3 + New Features

Qt WebEngine seems to be initialized from a plugin.

Scheduled Pinned Locked Moved Solved QtWebEngine
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michel de Boer
    wrote on last edited by
    #1

    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");
    
    1 Reply Last reply
    0
    • M Michel de Boer has marked this topic as solved on

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved