Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111154

[REG Qt 5 → Qt 6] qtvirtualkeyboard is unable to locate any custom stylings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.1, 6.6.0
    • 6.4.2
    • Virtual Keyboard
    • None
    • Debian 11 (bookworm), running on aarch64
    • Linux/Wayland, Linux/Other display system
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakoivik Jarkko Koivikko
              erikinkinen Erik Inkinen
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes