Commits

Antonio Alvarado Hernández committed a78a75c

created a simple project to learn Qt5

added a simple `hello world` example in Qt5 (cli version)

  • Participants
  • Parent commits fa76a15

Comments (0)

Files changed (4)

C++/Qt5/Learning/hello-cli/hello.cpp

+// hello.cpp - private implementation of my sample module
+
+#include "hello.h"
+
+#include <iostream>
+
+void
+says_hello() {
+    std::cout << "Hello, world!" << std::endl;
+}
+
+// EOF

C++/Qt5/Learning/hello-cli/hello.h

+// hello.h - public interface for my sample module
+
+#ifndef HELLO_H
+#define HELLO_H
+
+void
+says_hello();
+
+#endif // HELLO_H
+
+// EOF

C++/Qt5/Learning/hello-cli/hello.pro

+# hello.pro - my first hand-made `qmake` project file
+
+TARGET = hello-cli
+CONFIG += console
+HEADERS += hello.h
+SOURCES += hello.cpp
+SOURCES += main.cpp
+
+# EOF

C++/Qt5/Learning/hello-cli/main.cpp

+// main.cpp - this is the program's entry point
+
+#include "hello.h"
+
+int
+main() {
+
+    says_hello();
+}
+
+// EOF