Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit b55cb5e

Browse files
author
Matthew
committed
Hello world
0 parents  commit b55cb5e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bin/
2+
generated_files/
3+
Makefile

HelloQt.pro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Example: SOURCES = hello.cpp \
2+
# world.cpp
3+
# HEADERS = hello.h \
4+
# = world.h
5+
6+
SOURCES = src/main.cpp
7+
8+
CONFIG -= app_bundle
9+
10+
DESTDIR = bin
11+
OBJECTS_DIR = generated_files
12+
MOC_DIR = generated_files

src/main.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <QApplication>
2+
#include <QWidget>
3+
4+
int main(int argc, char *argv[])
5+
{
6+
QApplication app(argc, argv);
7+
8+
QWidget window;
9+
10+
window.resize(250, 150);
11+
window.setWindowTitle("Hello world");
12+
window.show();
13+
14+
return app.exec();
15+
}

0 commit comments

Comments
 (0)