diff options
| author | Konsta Alajärvi <konsta.alajarvi@qt.io> | 2025-10-23 09:30:05 +0300 |
|---|---|---|
| committer | Konsta Alajärvi <konsta.alajarvi@qt.io> | 2025-11-17 09:40:28 +0200 |
| commit | 6967da03bd0f1d07054f98d26ae73cd93f3a53a7 (patch) | |
| tree | 63e8d4afe62e0fee79ce008077afeab643f60a53 /tests/manual/android/softwarekeyboard/main.cpp | |
| parent | ef2f67f412e41e59b06fdf2ea21f54e2c4568d4a (diff) | |
Android: add manual test for software keyboard
Add tests to check that Android software keyboard
performs as expected with various scenarios, such as:
- Portrait mode
- Landsape mode
- Multi-window mode
- Split-screen mode
- CJK languages
- Microsoft Swiftkey keyboard
There are also three different Textfields
that all have different configurations. To consider the
test completed succesfully, all of the listed
scenarios need to be completed with each of the Textfields.
Task-number: QTBUG-140933
Change-Id: Id9e82d6ca189b5f6761b47d672ee032913610bf6
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'tests/manual/android/softwarekeyboard/main.cpp')
| -rw-r--r-- | tests/manual/android/softwarekeyboard/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/manual/android/softwarekeyboard/main.cpp b/tests/manual/android/softwarekeyboard/main.cpp new file mode 100644 index 0000000000..ca06bbaec0 --- /dev/null +++ b/tests/manual/android/softwarekeyboard/main.cpp @@ -0,0 +1,21 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// PDX-License-Identifier: BSD-3-Clause + +#include <QGuiApplication> +#include <QQmlApplicationEngine> + +int main(int argc, char *argv[]) +{ + QGuiApplication app(argc, argv); + + QQmlApplicationEngine engine; + QObject::connect( + &engine, + &QQmlApplicationEngine::objectCreationFailed, + &app, + []() { QCoreApplication::exit(-1); }, + Qt::QueuedConnection); + engine.loadFromModule("softwarekeyboard", "Main"); + + return app.exec(); +} |
