Skeleton QT app by QT creator.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 21 Jun 2017 18:20:50 +0000 (20:20 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 21 Jun 2017 18:20:50 +0000 (20:20 +0200)
qtapp/barcode2cash/barcode2cash.pro [new file with mode: 0644]
qtapp/barcode2cash/main.cpp [new file with mode: 0644]
qtapp/barcode2cash/mainwindow.cpp [new file with mode: 0644]
qtapp/barcode2cash/mainwindow.h [new file with mode: 0644]
qtapp/barcode2cash/mainwindow.ui [new file with mode: 0644]

diff --git a/qtapp/barcode2cash/barcode2cash.pro b/qtapp/barcode2cash/barcode2cash.pro
new file mode 100644 (file)
index 0000000..8dc102d
--- /dev/null
@@ -0,0 +1,20 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2017-06-21T20:19:39
+#
+#-------------------------------------------------
+
+QT       += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = barcode2cash
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+        mainwindow.cpp
+
+HEADERS  += mainwindow.h
+
+FORMS    += mainwindow.ui
diff --git a/qtapp/barcode2cash/main.cpp b/qtapp/barcode2cash/main.cpp
new file mode 100644 (file)
index 0000000..b48f94e
--- /dev/null
@@ -0,0 +1,11 @@
+#include "mainwindow.h"
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+    MainWindow w;
+    w.show();
+
+    return a.exec();
+}
diff --git a/qtapp/barcode2cash/mainwindow.cpp b/qtapp/barcode2cash/mainwindow.cpp
new file mode 100644 (file)
index 0000000..49d64fc
--- /dev/null
@@ -0,0 +1,14 @@
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+
+MainWindow::MainWindow(QWidget *parent) :
+    QMainWindow(parent),
+    ui(new Ui::MainWindow)
+{
+    ui->setupUi(this);
+}
+
+MainWindow::~MainWindow()
+{
+    delete ui;
+}
diff --git a/qtapp/barcode2cash/mainwindow.h b/qtapp/barcode2cash/mainwindow.h
new file mode 100644 (file)
index 0000000..a3948a9
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+
+namespace Ui {
+class MainWindow;
+}
+
+class MainWindow : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    explicit MainWindow(QWidget *parent = 0);
+    ~MainWindow();
+
+private:
+    Ui::MainWindow *ui;
+};
+
+#endif // MAINWINDOW_H
diff --git a/qtapp/barcode2cash/mainwindow.ui b/qtapp/barcode2cash/mainwindow.ui
new file mode 100644 (file)
index 0000000..6050363
--- /dev/null
@@ -0,0 +1,24 @@
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>MainWindow</string>
+  </property>
+  <widget class="QMenuBar" name="menuBar" />
+  <widget class="QToolBar" name="mainToolBar" />
+  <widget class="QWidget" name="centralWidget" />
+  <widget class="QStatusBar" name="statusBar" />
+ </widget>
+ <layoutDefault spacing="6" margin="11" />
+ <pixmapfunction></pixmapfunction>
+ <resources/>
+ <connections/>
+</ui>