diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..17c59e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build* +*.user +*.autosave diff --git a/KKK/KKK.pro b/KKK/KKK.pro new file mode 100644 index 0000000..cb1180d --- /dev/null +++ b/KKK/KKK.pro @@ -0,0 +1,22 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2016-07-29T18:45:26 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = KKK +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp \ + glwindow.cpp + +HEADERS += mainwindow.h \ + glwindow.h + +FORMS += mainwindow.ui diff --git a/KKK/glwindow.cpp b/KKK/glwindow.cpp new file mode 100644 index 0000000..6bc6a66 --- /dev/null +++ b/KKK/glwindow.cpp @@ -0,0 +1,20 @@ +#include "glwindow.h" + +void GLWindow::initializeGL() +{ + +} + +void GLWindow::paintGL() +{ +} + +void GLWindow::resizeGL(int width, int height) +{ + +} + +GLWindow::GLWindow(QWidget* parent) +{ + +} diff --git a/KKK/glwindow.h b/KKK/glwindow.h new file mode 100644 index 0000000..67db465 --- /dev/null +++ b/KKK/glwindow.h @@ -0,0 +1,14 @@ +#pragma once + +#include + +class GLWindow : public QOpenGLWidget +{ + private: + protected: + void initializeGL(); + void paintGL(); + void resizeGL(int width, int height); + public: + explicit GLWindow(QWidget* parent); +}; diff --git a/KKK/main.cpp b/KKK/main.cpp new file mode 100644 index 0000000..a080bdd --- /dev/null +++ b/KKK/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/KKK/mainwindow.cpp b/KKK/mainwindow.cpp new file mode 100644 index 0000000..6352813 --- /dev/null +++ b/KKK/mainwindow.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent) +{ + Ui::MainWindow::setupUi(this); +} + +MainWindow::~MainWindow() +{ +} diff --git a/KKK/mainwindow.h b/KKK/mainwindow.h new file mode 100644 index 0000000..d899a33 --- /dev/null +++ b/KKK/mainwindow.h @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +class MainWindow : public QMainWindow, private Ui::MainWindow +{ + Q_OBJECT + + private: + protected: + public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); +}; diff --git a/KKK/mainwindow.ui b/KKK/mainwindow.ui new file mode 100644 index 0000000..39a2b9a --- /dev/null +++ b/KKK/mainwindow.ui @@ -0,0 +1,53 @@ + + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + + 0 + 0 + 400 + 19 + + + + + + TopToolBarArea + + + false + + + + + + + + GLWindow + QOpenGLWidget +
glwindow.h
+
+
+ + +