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

No keyboard is available after "hot" restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • None
    • 5.12.12
    • QPA: Android
    • None
    • Android 11
    • Android

    Description

      If I "hot" restart my app (i.e. re-create all objects), Android keyboard does not appear anymore.

      Short code:

      for (;;)
          {
              QGuiApplication app(argc, argv);        QQmlApplicationEngine engine;
              const QUrl url(QStringLiteral("qrc:/main.qml"));
              QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
                               &app, [url](QObject *obj, const QUrl &objUrl) {
                  if (!obj && url == objUrl)
                      QCoreApplication::exit(-1);
              }, Qt::QueuedConnection);
              engine.load(url);        
              app.exec();
          }
      

      Full code: please see the example attached.

      P.S. I failed to compile this code under Qt 6.2.4 and Qt 6.3 due to weird compile errors. I will file bug report a bit later.

       

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            alervd Alexander Dyagilev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes