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
For Gerrit Dashboard: QTBUG-111154 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
461426,7 | VirtualKeyboard.Settings: ensure availability of valid engine pointer | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
469333,2 | VirtualKeyboard.Settings: ensure availability of valid engine pointer | 6.5 | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |