summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/properties/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/extending/properties/main.cpp')
-rw-r--r--examples/declarative/extending/properties/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/declarative/extending/properties/main.cpp b/examples/declarative/extending/properties/main.cpp
index 97d7905..2211b89 100644
--- a/examples/declarative/extending/properties/main.cpp
+++ b/examples/declarative/extending/properties/main.cpp
@@ -49,6 +49,9 @@ int main(int argc, char ** argv)
{
QCoreApplication app(argc, argv);
+ QML_REGISTER_TYPE(People, 1,0, BirthdayParty, BirthdayParty);
+ QML_REGISTER_TYPE(People, 1,0, Person, Person);
+
QmlEngine engine;
QmlComponent component(&engine, ":example.qml");
BirthdayParty *party = qobject_cast<BirthdayParty *>(component.create());