aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/referenceexamples/attached
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/referenceexamples/attached')
-rw-r--r--examples/qml/referenceexamples/attached/attached.pro4
-rw-r--r--examples/qml/referenceexamples/attached/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/qml/referenceexamples/attached/attached.pro b/examples/qml/referenceexamples/attached/attached.pro
index 16b585bc45..8c66b189f7 100644
--- a/examples/qml/referenceexamples/attached/attached.pro
+++ b/examples/qml/referenceexamples/attached/attached.pro
@@ -1,4 +1,8 @@
QT += qml
+CONFIG += qmltypes
+
+QML_IMPORT_NAME = People
+QML_IMPORT_MAJOR_VERSION = 1
SOURCES += main.cpp \
person.cpp \
diff --git a/examples/qml/referenceexamples/attached/main.cpp b/examples/qml/referenceexamples/attached/main.cpp
index ab1c6b9637..2fceb98ac9 100644
--- a/examples/qml/referenceexamples/attached/main.cpp
+++ b/examples/qml/referenceexamples/attached/main.cpp
@@ -58,10 +58,6 @@ int main(int argc, char ** argv)
{
QCoreApplication app(argc, argv);
- qmlRegisterTypesAndRevisions<BirthdayPartyAttached,
- BirthdayParty, ShoeDescription,
- Person, Boy, Girl>("People", 1);
-
QQmlEngine engine;
QQmlComponent component(&engine, QUrl("qrc:example.qml"));
auto *party = qobject_cast<BirthdayParty *>(component.create());