diff options
| author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2021-12-15 11:39:38 +0100 |
|---|---|---|
| committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2022-12-21 13:19:21 +0100 |
| commit | 9bad0175903bb10ad6eda82408be83060d696429 (patch) | |
| tree | 5726645e1c1001a4a48bcdd47adf1c0110bd6a21 /src/quickcontrols/doc/snippets/qtquickcontrols-menu-createObject.qml | |
| parent | 23d6733eb829d5c8006f7b60016f3cb868f0a2ed (diff) | |
qmlRegister*: check that the registered types are concrete
For some reason the QML engine seems to allow abstract types
to be registered in some cases, using the functions that however
expect concrete types (e.g. qmlRegisterType). Add static_asserts
to prevent this from happening, with a clear error message.
Change-Id: Id3701a8671bcc02457c81c793ee53c9721223ac2
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quickcontrols/doc/snippets/qtquickcontrols-menu-createObject.qml')
0 files changed, 0 insertions, 0 deletions
