Make sure this works as it should. The bug report/support request wants to have a String[] parameter on the Java side, but then the C++ side can not use jobjectArray (as that has "[Ljava/lang/Object;" as signature), so use Object[] instead (which is one solution; the other is to use QList<jstring> or (in 6.8) QStringList on the C++ side. What's easy to miss is that the jobjectArray that we get is a local ref, so we have to extend its lifetime by creating a QJniObject holding it as a global reference. We can then create a QJniArray from that QJniObject (without any type safety). Task-number: QTBUG-128456 Change-Id: I1e03b811165f9bc5106324d39fb58114ee8cf398 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> (cherry picked from commit f9fd5870f7379103005839bc03543bb8f6da94c3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| auto | ||
| baseline | ||
| benchmarks | ||
| global | ||
| libfuzzer | ||
| manual | ||
| shared | ||
| testserver | ||
| CMakeLists.txt | ||
| README | ||
README
This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.