qt6-bb10/tests/auto/corelib
Milian Wolff 5f2afe18cc Fix QMetaObject::newInstance on non-QObject meta object
QMetaObject::newInstance returns a QObject, thus it's not possible to
create a new instance of a Q_GADGET using this function. Previously, we
returned a non-null QObject pointer for such scenarios, which then
leads to crashes when one tries to use it. Now, we check whether the
meta object inherits QObject's meta object, and error out early
otherwise.

Change-Id: I7b1fb6c8d48b3e98161894be2f281a491963345e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-09 15:46:35 +00:00
..
animation Extend blacklisting of tst_qparallelanimationgroup tests to macOS 10.13 2018-09-24 21:13:30 +00:00
codecs Add tests for decoding too-short UTF-8 sequences 2018-09-25 22:14:07 +00:00
global Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
io tst_QUrl: Fix left-over temporary directory on Windows 2019-04-08 18:44:25 +00:00
itemmodels Fix tree recursion in QAbstractItemModel::match() 2019-03-22 08:01:35 +00:00
kernel Fix QMetaObject::newInstance on non-QObject meta object 2019-04-09 15:46:35 +00:00
mimetypes QMimeType: Use default key as fallback for comment() property 2018-11-02 08:27:10 +00:00
plugin Fix build with -no-gui on macOS 2019-03-04 12:25:53 +00:00
serialization QPixmap: More safe failing if qApp is not a QGuiApplication 2019-03-22 08:06:43 +00:00
statemachine tst_QStateMachine: Don't use unconditional waits 2018-04-04 07:07:40 +00:00
thread Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
tools Fix various uncommon cases in QTzTimeZonePrivate backend 2019-04-05 20:31:26 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00