diff options
Diffstat (limited to 'examples/declarative/extending/grouped/main.cpp')
-rw-r--r-- | examples/declarative/extending/grouped/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/declarative/extending/grouped/main.cpp b/examples/declarative/extending/grouped/main.cpp index 79aaab5..a8dafd9 100644 --- a/examples/declarative/extending/grouped/main.cpp +++ b/examples/declarative/extending/grouped/main.cpp @@ -49,6 +49,12 @@ int main(int argc, char ** argv) { QCoreApplication app(argc, argv); + QML_REGISTER_TYPE(People, 1,0, BirthdayParty, BirthdayParty); + QML_REGISTER_NOCREATE_TYPE(ShoeDescription); + QML_REGISTER_NOCREATE_TYPE(Person); + QML_REGISTER_TYPE(People, 1,0, Boy, Boy); + QML_REGISTER_TYPE(People, 1,0, Girl, Girl); + QmlEngine engine; QmlComponent component(&engine, ":example.qml"); BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create()); |