254.32. qt6-qtwebview-6.11.2
Qt 6 WebView — web content in a Qt Quick item, rendered through Qt WebEngine
6.11.2-1 · LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only · 2.0 SBU · 608.9 KiB, 111 files · 43_toolkits, 312 of 344 · ports/core/qt6/qt6-qtwebview
Homepage: https://www.qt.io/
Qt WebView for Qt 6 shows web content in a Qt Quick item through the platform’s own web engine. On Linux that engine is Qt WebEngine, so the module is a thin layer over qt6-qtwebengine: the WebView QML type and a plugin that renders it with a WebEngineView. neochat requires it, and tokodon uses it.
Depends on: cmake, ninja, qt6-qtbase, qt6-qtdeclarative, qt6-qtwebengine.
Required by (2): neochat, tokodon.
Sources: qt6-qtwebview-6.11.2.tar.xz (113.8 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install qt6-qtwebview'
build.sh:
mkdir build && cd build
cmake .. -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_BUILD_TESTS=OFF \
-DQT_BUILD_EXAMPLES=OFF \
-DFEATURE_webview_webengine_plugin=ON
ninja
DESTDIR=$PKG ninja install
-DFEATURE_webview_webengine_plugin=ON— build the Qt WebEngine plugin, the only backend Qt WebView has on Linux. Upstream builds it only when it finds Qt WebEngine Core and Quick, and without them the module installs with no backend to load; named, a missing Qt WebEngine stops the configure.
Libraries: libQt6WebView.so, libQt6WebViewQuick.so.
Directories: /usr/include/qt6/QtWebView, /usr/include/qt6/QtWebViewQuick, /usr/lib/cmake/Qt6WebView, /usr/lib/cmake/Qt6WebViewPrivate, /usr/lib/cmake/Qt6WebViewQuick, /usr/lib/cmake/Qt6WebViewQuickPrivate, /usr/lib/qt6/plugins/webview, /usr/lib/qt6/qml/QtWebView, /usr/share/licenses/qt6-qtwebview.
The port’s version follows qt6-qtwebengine, not qt6-qtbase. The plugin links Qt WebEngine’s private libraries (WebEngineCorePrivate, WebEngineQuickPrivate), which carry no compatibility promise from one release to the next, so a Qt WebView of another release than the Qt WebEngine beside it may fail to compile or break at run time. The two move together, and both are built against whichever qt6-qtbase the set is at (see How Qt 6 is built). Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own.