Details
-
Bug
-
Resolution: Won't Do
-
P1: Critical
-
None
-
5.12.12
-
None
-
Android 11
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.