aboutsummaryrefslogtreecommitdiffstats
path: root/SampleNavigationApp
diff options
context:
space:
mode:
Diffstat (limited to 'SampleNavigationApp')
-rw-r--r--SampleNavigationApp/SampleNavigationApp.pro20
-rw-r--r--SampleNavigationApp/main.cpp11
-rw-r--r--SampleNavigationApp/mainwindow.cpp17
-rw-r--r--SampleNavigationApp/mainwindow.h22
-rw-r--r--SampleNavigationApp/mainwindow.ui91
5 files changed, 161 insertions, 0 deletions
diff --git a/SampleNavigationApp/SampleNavigationApp.pro b/SampleNavigationApp/SampleNavigationApp.pro
new file mode 100644
index 0000000..ab57a0c
--- /dev/null
+++ b/SampleNavigationApp/SampleNavigationApp.pro
@@ -0,0 +1,20 @@
+#-------------------------------------------------
+#
+# Project created by QtCreator 2016-11-04T17:03:47
+#
+#-------------------------------------------------
+
+QT += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = SampleNavigationApp
+TEMPLATE = app
+
+
+SOURCES += main.cpp\
+ mainwindow.cpp
+
+HEADERS += mainwindow.h
+
+FORMS += mainwindow.ui
diff --git a/SampleNavigationApp/main.cpp b/SampleNavigationApp/main.cpp
new file mode 100644
index 0000000..b48f94e
--- /dev/null
+++ b/SampleNavigationApp/main.cpp
@@ -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/SampleNavigationApp/mainwindow.cpp b/SampleNavigationApp/mainwindow.cpp
new file mode 100644
index 0000000..e79aeb8
--- /dev/null
+++ b/SampleNavigationApp/mainwindow.cpp
@@ -0,0 +1,17 @@
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+
+MainWindow::MainWindow(QWidget *parent) :
+ QMainWindow(parent),
+ ui(new Ui::MainWindow)
+{
+ // no window decoration
+ setWindowFlags(Qt::FramelessWindowHint);
+
+ ui->setupUi(this);
+}
+
+MainWindow::~MainWindow()
+{
+ delete ui;
+}
diff --git a/SampleNavigationApp/mainwindow.h b/SampleNavigationApp/mainwindow.h
new file mode 100644
index 0000000..a3948a9
--- /dev/null
+++ b/SampleNavigationApp/mainwindow.h
@@ -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/SampleNavigationApp/mainwindow.ui b/SampleNavigationApp/mainwindow.ui
new file mode 100644
index 0000000..07ea34d
--- /dev/null
+++ b/SampleNavigationApp/mainwindow.ui
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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="QWidget" name="centralWidget">
+ <widget class="QLabel" name="label">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>10</y>
+ <width>171</width>
+ <height>17</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Sample Navigation App</string>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="pushButton">
+ <property name="geometry">
+ <rect>
+ <x>140</x>
+ <y>60</y>
+ <width>100</width>
+ <height>100</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>100x100px</string>
+ </property>
+ </widget>
+ <widget class="QLabel" name="label_2">
+ <property name="geometry">
+ <rect>
+ <x>110</x>
+ <y>220</y>
+ <width>161</width>
+ <height>17</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>400x300px default size</string>
+ </property>
+ </widget>
+ </widget>
+ <widget class="QMenuBar" name="menuBar">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>25</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="menuSampleMenu">
+ <property name="title">
+ <string>SampleMenu</string>
+ </property>
+ </widget>
+ <widget class="QMenu" name="menuYet_Another_Sample">
+ <property name="title">
+ <string>Yet Another Sample</string>
+ </property>
+ </widget>
+ <addaction name="menuSampleMenu"/>
+ <addaction name="menuYet_Another_Sample"/>
+ </widget>
+ <widget class="QToolBar" name="mainToolBar">
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
+ </widget>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources/>
+ <connections/>
+</ui>