Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25890

can't load QtQuick.VirtualKeyboard.Plugins when running or debugging pure-qml on linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.15.0
    • Debugger
    • None
    • Linux/X11

    Description

      On Ubuntu 20.04(KDE neon), GNOME on xorg, latest build of dev branch(), including qtvirtualkeyboard and qtwayland.

      cd ~/qt/qtbase-build
      cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DQT_BUILD_EXAMPLES=OFF -DFEATURE_developer_build=ON -DWARNINGS_ARE_ERRORS=OFF -DQT_BUILD_TESTS=OFF -DQT_BUILD_EXAMPLES=OFF -DCMAKE_AUTOGEN_VERBOSE=OFF ~/qt/qtbase
      cmake --build . --parallel
      cd ~/qt/qtshadertools-build
      ~/qt/qtbase-build/bin/qt-cmake-private -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=OFF /home/liangqi/qt/qtshadertools
      cmake --build . --parallel
      // same for qtdeclarative, qtsvg, qtquickcontrols2, qtvirtualkeyboard and qtwayland
      cd ~/qt
      mkdir qtwayland-examples-build
      ~/qt/qtbase-build/bin/qmake ~/qt/qtwayland/examples/examples.pro
      make -j8
      

      Use Qt Creator to load pure-qml (source: ~/qt/qtwayland/examples/wayland/pure-qml, build: ~/qt/qtwayland-examples-build/wayland/pure-qml), add QT_IM_MODULE=qtvirtualkeyboard in Run env, and -platform xcb in command line arguments.

      Then run or debug pure-qml, got

      13:44:57: Starting /home/liangqi/qt/qtwayland-examples-build/wayland/pure-qml/pure-qml -platform xcb...
      Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /home/liangqi/qt/qtbase-build/plugins
      qrc:/qt-project.org/imports/QtWayland/Compositor/qmlfiles/WaylandCursorItem.qml:49:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
      qrc:/qml/Keyboard.qml:54:1: Type InputPanel unavailable
      qrc:/QtQuick/VirtualKeyboard/content/InputPanel.qml:132:5: Type Keyboard unavailable
      qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:38:1: module "QtQuick.VirtualKeyboard.Plugins" is not installed
      qt.waylandcompositor.hardwareintegration: Failed to initialize EGL display. Could not get EglDisplay for window.
      

      Running the same app in GNOME Terminal, it works fine, no warnings about can't load qtvkb plugin.

      Attachments

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

        Activity

          People

            hjk hjk
            liaqi Liang Qi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes