diff options
-rw-r--r-- | examples/speech/qmlspeech/main.cpp | 4 | ||||
-rw-r--r-- | examples/speech/qmlspeech/qmlspeech.pro | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/speech/qmlspeech/main.cpp b/examples/speech/qmlspeech/main.cpp index 4cc6d8a..bb2fc91 100644 --- a/examples/speech/qmlspeech/main.cpp +++ b/examples/speech/qmlspeech/main.cpp @@ -36,7 +36,7 @@ #include "qspeechrecognition.h" -#include <QApplication> +#include <QGuiApplication> #include <QQmlContext> #include <QQmlApplicationEngine> #include <QLoggingCategory> @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { - QApplication app(argc, argv); + QGuiApplication app(argc, argv); QLoggingCategory::setFilterRules(QStringLiteral("qt.speech.asr=true \n qt.speech.asr.*=true")); QQmlApplicationEngine engine; diff --git a/examples/speech/qmlspeech/qmlspeech.pro b/examples/speech/qmlspeech/qmlspeech.pro index c5d1b8a..718cfeb 100644 --- a/examples/speech/qmlspeech/qmlspeech.pro +++ b/examples/speech/qmlspeech/qmlspeech.pro @@ -1,6 +1,6 @@ TEMPLATE = app -QT += qml quick widgets speechrecognition +QT += qml quick speechrecognition SOURCES += main.cpp |