summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/gettingStarted/gsQt/part2
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/gettingStarted/gsQt/part2')
-rw-r--r--examples/tutorials/gettingStarted/gsQt/part2/main.cpp4
-rw-r--r--examples/tutorials/gettingStarted/gsQt/part2/part2.pro1
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/tutorials/gettingStarted/gsQt/part2/main.cpp b/examples/tutorials/gettingStarted/gsQt/part2/main.cpp
index 93f14a25bb..996c3149c6 100644
--- a/examples/tutorials/gettingStarted/gsQt/part2/main.cpp
+++ b/examples/tutorials/gettingStarted/gsQt/part2/main.cpp
@@ -40,9 +40,9 @@
#include <QtWidgets>
-int main(int argv, char **args)
+int main(int argc, char *argv[])
{
- QApplication app(argv, args);
+ QApplication app(argc, argv);
QTextEdit textEdit;
QPushButton quitButton("&Quit");
diff --git a/examples/tutorials/gettingStarted/gsQt/part2/part2.pro b/examples/tutorials/gettingStarted/gsQt/part2/part2.pro
index 383c3ce5ba..81fb0e9ff9 100644
--- a/examples/tutorials/gettingStarted/gsQt/part2/part2.pro
+++ b/examples/tutorials/gettingStarted/gsQt/part2/part2.pro
@@ -1,4 +1,5 @@
+QT += widgets
SOURCES = main.cpp
# install