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. Qt VirtualKeyboard not loading with QtWayland ServerSide-Decoration example
Forum Updated to NodeBB v4.3 + New Features

Qt VirtualKeyboard not loading with QtWayland ServerSide-Decoration example

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 115 Views
  • 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.
  • T Offline
    T Offline
    tushar
    wrote on last edited by
    #1

    Hello,

    I have built qt 5.14.0 with wayland and virtualkeyboard plugin.

    RIght now I am running wayland server-side-decoration example for server side on EGLFS platform. On client side I am running my custom application on wayland platform.

    Now, I have added InputPanel code into main.qml of server-side-decoration example for loading virtualkeyboard plugin.

    import QtQuick 2.5
    import QtQuick.Window 2.2
    import QtQuick.Layouts 1.3
    import QtWayland.Compositor 1.3
    import QtQuick.VirtualKeyboard 2.1

    WaylandCompositor {
    // The output defines the screen.
    WaylandOutput {
    sizeFollowsWindow: true
    window: Window {
    width: 1024
    height: 600
    visible: true
    Rectangle {
    anchors.fill: parent
    gradient: "MorpheusDen"
    }

            Repeater {
                model: shellSurfaces
                Column {
                    id: chrome
                    width: shellSurfaceItem.implicitWidth
                    Rectangle {
                        visible: modelData.toplevel.decorationMode === XdgToplevel.ServerSideDecoration
                        width: parent.width
                        //height: 30
                        height: 0
                        gradient: "HeavyRain";
                        Text {
                            text: modelData.toplevel.title
                            anchors.centerIn: parent
                        }
    

    // Item {
    // anchors.right: parent.right
    // width: 30
    // height: 30
    // Text { text: "X"; anchors.centerIn: parent }
    // TapHandler {
    // onTapped: modelData.toplevel.sendClose()
    // }
    // }
    // DragHandler {
    // target: chrome
    // }
    }
    InputPanel {
    visible: active
    y: active ? parent.height - height : parent.height
    anchors.left: parent.left
    anchors.right: parent.right
    }
    ShellSurfaceItem {
    id: shellSurfaceItem
    moveItem: parent
    autoCreatePopupItems: true
    shellSurface: modelData
    onSurfaceDestroyed: shellSurfaces.remove(index)
    }
    }
    }
    }
    }
    XdgShell {
    onToplevelCreated: shellSurfaces.append({shellSurface: xdgSurface});
    }
    XdgDecorationManagerV1 {
    preferredMode: XdgToplevel.ServerSideDecoration
    }
    ListModel { id: shellSurfaces }
    TextInputManager {}
    }

    What is happening when I executing my client side application. When I touch on lineedit box it opens un-visible keyboard means no keyboard is there I only feeling the show hide event. If anyone have any solution for this issue it would be great help to me.

    Thanks

    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