diff options
| author | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-07 11:32:01 +0200 |
|---|---|---|
| committer | Mikolaj Boc <mikolaj.boc@qt.io> | 2022-07-12 13:24:57 +0200 |
| commit | fd45278eaa3004e5450f011102fe0d55ae6ed8b3 (patch) | |
| tree | 70db84b4eeb44fb6c893fe21ff13af574ff3b63a /src/printsupport/doc/snippets/widgetprinting.cpp | |
| parent | 5e8cc498a13778347628792991e743d83988ee8a (diff) | |
Specialize MetaObjectForType for non-pointer QObject-derived types
QMetaTypeInterfaceWrapper tries to find the metaObjectFunction using
the MetaObjectForType template. Using SFINAE, for a QObject, it should
resolve to a suitable specialization.
Such a specialization doesn't yet exist. It had to be created.
The following path returns nullptr for registered meta types:
auto metatype = QMetaType(typeId);
requestedTestType.metaObject() -> returns nullptr since a bad template
argument is fed to MetaObjectForType<T> in
QMetaTypeInterfaceWrapper<IneritingFromQObject>::metaType's static initializer.
Change-Id: I8b31c51e12cb19c333e00480b0177354b910ce1e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/printsupport/doc/snippets/widgetprinting.cpp')
0 files changed, 0 insertions, 0 deletions
