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

qtvirtualkeyboard "input method is not set" on Yocto/X11 when launched according to examples

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 5.11.2
    • Virtual Keyboard
    • None
    • Linux/X11

      ... but it works when changing the code as follows (inspired by how SDDM does it, as SDDM happened to work):

      - QQmlApplicationEngine engine;
      - engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
      + QList<QScreen *> screens = qGuiApp->primaryScreen()->virtualSiblings();
      + QScreen * screen(screens[0]);
      + QQuickView *view = new QQuickView();
      + view->setScreen(screen);
      + view->setResizeMode(QQuickView::SizeRootObjectToView);
      + view->setGeometry(screen->geometry());
      + view->setSource(QUrl(QStringLiteral("qrc:/qml/main.qml")));
      + view->show();
      + view->requestActivate();

      (and of course adjusting the QML to not use an ApplicationWindow but something else).
      I don't know what is the problem but I have my workaround and won't spend more time diagnosing.

      Best regards,

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

            zougloub Jérôme Carretero
            zougloub Jérôme Carretero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes