Is Flatpak a viable way to package ParaView with QtWebEngineView?

Dear Community! :slightly_smiling_face:
My development environment is Ubuntu (Qt5.15), and my ParaView plugin (C++) make use of a QtWebEngineView. If I attempt to package ParaView together with my plugin, I get the following warning during the CMake configuration step:
CMake Warning at CMakeLists.txt:324 (message):
Packaging QtWebEngine on Linux/macOS is not supported yet, generated
package may not be usable
Call Stack (most recent call first):
superbuild/CMakeLists.txt:202 (superbuild_sanity_check)

As the warning indicates, packaging QtWebEngine on Linux is currently not supported and I get a resulting package with the WebEngineView component not working. As a possible workaround, I am considering using Flatpak to package ParaView along with my plugin and its QtWebEngine dependency.

Before going down that path, I wanted to check whether anyone here has prior experience packaging ParaView (or QtWebEngine-based Qt applications) using Flatpak, or whether someone with more expertise could comment on whether this is a feasible and reasonable direction to pursue.

Any thoughts or pointers would be much appreciated. Thanks!

IIRC, the main gap is that the list of Qt plugins to install is unknown. There’s a list of them…somewhere (paraview.bundle.common.cmake?) that you can amend to properly package it in a working state.