254.30. qt6-qtvirtualkeyboard-6.12.0
Qt 6 Virtual Keyboard — an on-screen keyboard input method with word prediction for Qt applications
6.12.0-1 · GPL-3.0-only AND Apache-2.0 AND BSD-3-Clause · 11.8 SBU · 8.0 MiB, 390 files · 43_toolkits, 310 of 344 · ports/core/qt6/qt6-qtvirtualkeyboard
Homepage: https://www.qt.io/
Qt Virtual Keyboard for Qt 6 is an on-screen keyboard that Qt applications load as an input method plugin (QT_IM_MODULE=qtvirtualkeyboard), with its Qt Quick types for embedding the keyboard in a QML scene. It has layouts for some forty languages, word prediction through Hunspell, and the Japanese, Chinese and Korean input methods. plasma-keyboard, the SDDM greeter’s --inputmethod and plasma-setup are built on it.
Depends on: cmake, ninja, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, hunspell, hunspell-en.
Required by (1): plasma-keyboard.
Sources: qt6-qtvirtualkeyboard-6.12.0.tar.xz (3.1 MiB). 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-qtvirtualkeyboard'
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_system_hunspell=ON \
-DFEATURE_hunspell=ON \
-DFEATURE_vkb_sound_effects=ON \
-DFEATURE_vkb_desktop=ON \
-DFEATURE_vkb_layouts=ON
ninja
DESTDIR=$PKG ninja install
-DFEATURE_system_hunspell=ON— with-DFEATURE_hunspell=ON: word prediction through the hunspell library the tree builds. The release archive’s3rdparty/hunspellholds only CMake files, not Hunspell’s sources, so the system library is the only one there is. Both switches are named so that a missing library stops the configure instead of leaving prediction out.-DFEATURE_vkb_sound_effects=ON— key-press sounds, through Qt Multimedia; upstream turns them on only when it finds qt6-qtmultimedia, so it is named and independs.-DFEATURE_vkb_desktop=ON— with-DFEATURE_vkb_layouts=ON: the desktop integration, which shows the keyboard in its own window over any focused Qt text field, and the built-in layouts. Both are upstream’s defaults, named.
Libraries: libQt6HunspellInputMethod.so, libQt6VirtualKeyboard.so, libQt6VirtualKeyboardQml.so, libQt6VirtualKeyboardSettings.so.
Directories: /usr/include/qt6/QtHunspellInputMethod, /usr/include/qt6/QtVirtualKeyboard, /usr/include/qt6/QtVirtualKeyboardQml, /usr/include/qt6/QtVirtualKeyboardSettings, /usr/lib/cmake/Qt6HunspellInputMethod, /usr/lib/cmake/Qt6HunspellInputMethodPrivate, /usr/lib/cmake/Qt6VirtualKeyboard, /usr/lib/cmake/Qt6VirtualKeyboardPrivate, /usr/lib/cmake/Qt6VirtualKeyboardQml, /usr/lib/cmake/Qt6VirtualKeyboardQmlPrivate, /usr/lib/cmake/Qt6VirtualKeyboardSettings, /usr/lib/cmake/Qt6VirtualKeyboardSettingsPrivate, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Components, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Core, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Layouts, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Plugins, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Settings, /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Styles/Builtin, /usr/share/licenses/qt6-qtvirtualkeyboard.
The recipe does not pass the INPUT_vkb_hunspell choice: cmake/QtVirtualKeyboardSetup.cmake overwrites it in the cache with an empty value on every configure, so it selects nothing.
Prediction reads dictionaries from /usr/share/hunspell, which hunspell-en fills for English; it is in depends for run time. A layout whose language has no dictionary there types without suggestions.
The keyboard layouts are input data, not interface translations, so every language upstream autodetects is built; the package-wide English-only rule (see Size and language policy) does not touch them.
The configure finds Qt Quick and Qt SVG quietly and skips the whole module without either, so qt6-qtdeclarative and qt6-qtsvg are in depends.
Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own (see How Qt 6 is built).