qt5base-lts/tests/auto/corelib/kernel
Fabian Kosmale 6a0e59ed50 QVariant: Avoid crash when constructed from unsuitable metatype
If the metatype does not support copy and default construction, then it
it unsuitunsuitable for use in QMetaType. We cannot prevent users from
passing in such metatypes (as we have e.g. a ctor taking QMetaType), so
verify this in customConstruct, and make the variant invalid in that
case.

Pick-to: 6.2 6.3 6.4
Change-Id: Ib1f0149c8fb9a1cce0049fd0311980754cc85d1b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-07-21 08:37:34 -07:00
..
qapplicationstatic Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcoreapplication Fix return value of qGlobalPostedEventsCount() 2022-05-18 17:54:15 +02:00
qdeadlinetimer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qelapsedtimer Use debug stream in QTest::toString's default fallback if possible 2022-07-13 15:14:35 +02:00
qeventdispatcher Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qeventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qjnienvironment Add support for scoped JNI callbacks 2022-07-07 13:35:08 +03:00
qjniobject QJniObject: Add template overloads for get/setStaticField 2022-07-12 13:25:04 +02:00
qjnitypes Add compile-time generation of JNI class names 2022-05-27 22:27:13 +02:00
qmath Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetacontainer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaenum Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetamethod Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaobject Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaobjectbuilder Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetaproperty Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmetatype Specialize MetaObjectForType for non-pointer QObject-derived types 2022-07-12 13:24:57 +02:00
qmimedata Support markdown in QTextEditMimeData; fix pasting trailing newlines 2022-06-24 22:42:28 +02:00
qobject QMetaType: disable conversion from smart pointer<const QObject> 2022-05-21 11:43:59 +02:00
qpointer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qproperty Avoid misleading bindingStatus 2022-06-20 19:06:20 +02:00
qsharedmemory Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsignalblocker Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsignalmapper Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsocketnotifier Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsystemsemaphore Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtimer Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtranslator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qvariant QVariant: Avoid crash when constructed from unsuitable metatype 2022-07-21 08:37:34 -07:00
qwineventnotifier Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Generate JNI signature strings at compile time 2022-05-05 07:29:25 +02:00