Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.4.2
-
None
-
Debian 11 (bookworm), running on aarch64
-
-
8157767ef (dev), bcc9af4a5 (6.5)
Description
When porting a piece of software from Qt5 to Qt6, I noticed that the virtual keyboard was unable to find the style.qml file as it would find it in Qt5.
After further investigation, it seems that an if statement regarding the QML context of the virtualkeyboard's settings seem to be evaluate as null (interpreted as false).
QStringList qmlImportPathList() const { Q_Q(const QQuickVirtualKeyboardSettings); if (QQmlContext *context = QQmlEngine::contextForObject(q)) { // <-- this one if (QQmlEngine *engine = context->engine()) { return engine->importPathList(); } } return QStringList(); }
The above snippet illustrates which part of the code seems to be the culprit. Taken from: qtvirtualkeyboard/src/settings/qquickvirtualkeyboardsettings.cpp
Inspecting the code, it seems this is not expected to be false.
It is likely this affects multiple versions (including dev branch), and multiple platforms.
Attachments
Issue Links
- duplicates
-
QTBUG-108536 Custom styles are not working
- Closed