Skip to content

plasmawindowed: Use shared contexts analogue to plasmashell

Heiko Becker requested to merge work/heirecka/cherry-pick-a23432f218 into Plasma/6.2
  • plasmawindowed: Use shared contexts analogue to plasmashell

This fixes loading applets using QtWebEngine, which otherwise may complain about something like this:

"QtWebEngineQuick::initialize() must be called from the Qt gui thread."

According to Qt's docs [1] setting the Qt::AA_ShareOpenGLContexts attribute before constructing a QGuiApplication, has the same effect as QtWebEngineQuick::initialize() and avoids pulling in the humongous dependency.

For plasmashell it has been introduced with 6c1c6b86.

CCBUG: 495758

[1] https://doc.qt.io/qt-6/qtwebenginequick.html

(cherry picked from commit a23432f2)

Merge request reports

Loading