From 0702e9a1c7a7123472699c539cd39e97741e3514 Mon Sep 17 00:00:00 2001 From: Aryan Arora Date: Sat, 4 Mar 2023 18:06:05 +0530 Subject: [PATCH] Update image-viewer.md **main.cpp** instead of **main.qml** --- docs/ch06-controls/image-viewer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ch06-controls/image-viewer.md b/docs/ch06-controls/image-viewer.md index e825653a..7033a293 100644 --- a/docs/ch06-controls/image-viewer.md +++ b/docs/ch06-controls/image-viewer.md @@ -503,7 +503,7 @@ In addition to the QML changes, we also need to alter the project file of the im QT += quick quickcontrols2 widgets ``` -And we need to update `main.qml` to instantiate a `QApplication` object instead of a `QGuiApplication` object. This is because the `QGuiApplication` class contains the minimal environment needed for a graphical application, while `QApplication` extends `QGuiApplication` with features needed to support `QtWidgets`. +And we need to update `main.cpp` to instantiate a `QApplication` object instead of a `QGuiApplication` object. This is because the `QGuiApplication` class contains the minimal environment needed for a graphical application, while `QApplication` extends `QGuiApplication` with features needed to support `QtWidgets`. ```cpp include