Difference between revisions of "Qt5/Qt-Creator "Hello World" Console Application"
(→Video) |
(→Source Files) |
||
Line 12: | Line 12: | ||
=Source Files= | =Source Files= | ||
+ | <br /><br /> | ||
+ | == Console.pro == | ||
+ | <br /><br /><source lang="text"> | ||
+ | #------------------------------------------------- | ||
+ | # | ||
+ | # Project created by QtCreator 2014-02-01T16:45:38 | ||
+ | # | ||
+ | #------------------------------------------------- | ||
+ | |||
+ | QT += core | ||
+ | |||
+ | QT -= gui | ||
+ | |||
+ | TARGET = Console | ||
+ | CONFIG += console | ||
+ | CONFIG -= app_bundle | ||
+ | |||
+ | TEMPLATE = app | ||
+ | |||
+ | |||
+ | SOURCES += main.cpp | ||
+ | </source><br /><br /> | ||
+ | <br /><br /> | ||
+ | == main.cpp == | ||
+ | <br /><br /><source lang="cpp"> | ||
+ | #include <QDebug> | ||
+ | |||
+ | int main(int argc, char *argv[]) { | ||
+ | qDebug() << "hello beautiful world!" << endl << endl; | ||
+ | |||
+ | return 0; | ||
+ | |||
+ | } | ||
+ | </source><br /><br /> | ||
<br /> | <br /> | ||
Revision as of 17:18, 1 February 2014
--D. Thiebaut (talk) 17:04, 1 February 2014 (EST)
Contents
Video
Source Files
Console.pro
#-------------------------------------------------
#
# Project created by QtCreator 2014-02-01T16:45:38
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = Console
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
main.cpp
#include <QDebug>
int main(int argc, char *argv[]) {
qDebug() << "hello beautiful world!" << endl << endl;
return 0;
}