From c70452a65af222343451f19ec62744314444c181 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 11 Feb 2020 16:49:55 +0100 Subject: Doc: Modernize backend example and adapt C++ integration docs We want people to use the static type registration. Change-Id: I98e51af9df1a2f73df10f82458a7b7f5c5e5aad1 Reviewed-by: Fabian Kosmale Reviewed-by: Paul Wicking --- src/qml/doc/snippets/code/backend/main.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/qml/doc/snippets/code/backend/main.cpp') diff --git a/src/qml/doc/snippets/code/backend/main.cpp b/src/qml/doc/snippets/code/backend/main.cpp index 91a012dfda..52fcb38621 100644 --- a/src/qml/doc/snippets/code/backend/main.cpp +++ b/src/qml/doc/snippets/code/backend/main.cpp @@ -51,14 +51,10 @@ #include #include -#include "backend.h" - int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - qmlRegisterType("io.qt.examples.backend", 1, 0, "BackEnd"); - QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); -- cgit v1.2.1