Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML-App crashes with VirtualKeyboard (InputPanel)
Forum Updated to NodeBB v4.3 + New Features

QML-App crashes with VirtualKeyboard (InputPanel)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dailydols
    wrote on last edited by dailydols
    #1

    I develop a QML GUI on an i.MX53 board with Linux 2.6.3, GCC 4.7.3 and Qt 5.7 EGLFS.

    The Enterprise version of the VirtualKeyboard is successfully compiled, deployed to the local filesystem of the board, and QT_DEBUG_PLUGINS=1 shows that the qtvirtualkeyboardplugin is loaded.

    But as soon as I have an InputPanel item added to my main.qml, the program crashes as soon the main QApplication is executed with "exec()" after the QQuickView is shown with "show()".

    When the InputPanel is commented out, the program runs without a crash, but of course does not show a keyboard when it should.

    When the QQuickView is not shown (no show()), the program also starts, but of course nothing is displayed.

    QML_TRACE_IMPORTS=1 ends with the lines

    [...]
    QQmlImports(qrc:///QtQuick/Enterprise/VirtualKeyboard/content/components/ShiftKey.qml)::addLibraryImport: "QtQuick.Enterprise.VirtualKeyboard" 2.0 as ""
    QQmlImports(qrc:///QtQuick/Enterprise/VirtualKeyboard/content/components/ShiftKey.qml)::resolveType: "BaseKey" => "" QUrl("qrc:///QtQuick/Enterprise/VirtualKeyboard/content/components/BaseKey.qml") TYPE/URL
    QQmlImports(qrc:/QtQuick/Enterprise/VirtualKeyboard/content/layouts/en_GB/main.qml)::resolveType: "InputEngine" => "QtVirtualKeyboard::InputEngine" TYPE
    

    followed by some debug console.log() output from components in the VirtualKeyboard plugin. So the plugin QML code appears to be loaded and at least partially instanciated.

    The whole project is kept compatible to Windows, and for Windows the problem does not occur at all.

    What could be the reason for the crash in Linux?

    Kind regards,
    Konstantin

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      YorkChen1989
      wrote on last edited by
      #2

      Maybe because qt linux does not support two windows. the virtual keyboard is a new window.I meet the same problem, but do not know how to resolve it.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NinjaCricket
        wrote on last edited by
        #3

        I am having the same issue with qt 6.5.4 on linux... Any idea why this is happening?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved