From 416c4dee328a2fcd8423088bea0973ed30b713d5 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Fri, 28 Apr 2023 15:53:07 +0500 Subject: [PATCH] Initial window --- .qmake.stash | 21 +++++++++++++++++++++ 3dobj-renderer.pro | 20 ++++++++++++++++++++ main.cpp | 12 ++++++++++++ mainwindow.ui | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) create mode 100644 .qmake.stash create mode 100644 3dobj-renderer.pro create mode 100644 main.cpp create mode 100644 mainwindow.ui diff --git a/.qmake.stash b/.qmake.stash new file mode 100644 index 0000000..2154c78 --- /dev/null +++ b/.qmake.stash @@ -0,0 +1,21 @@ +QMAKE_CXX.QT_COMPILER_STDCXX = 201703L +QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 12 +QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2 +QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 1 +QMAKE_CXX.COMPILER_MACROS = \ + QT_COMPILER_STDCXX \ + QMAKE_GCC_MAJOR_VERSION \ + QMAKE_GCC_MINOR_VERSION \ + QMAKE_GCC_PATCH_VERSION +QMAKE_CXX.INCDIRS = \ + /usr/include/c++/12.2.1 \ + /usr/include/c++/12.2.1/x86_64-pc-linux-gnu \ + /usr/include/c++/12.2.1/backward \ + /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/include \ + /usr/local/include \ + /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/include-fixed \ + /usr/include +QMAKE_CXX.LIBDIRS = \ + /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1 \ + /usr/lib \ + /lib diff --git a/3dobj-renderer.pro b/3dobj-renderer.pro new file mode 100644 index 0000000..317b9a9 --- /dev/null +++ b/3dobj-renderer.pro @@ -0,0 +1,20 @@ +###################################################################### +# Automatically generated by qmake (3.1) Fri Apr 28 15:33:24 2023 +###################################################################### + +TEMPLATE = app +TARGET = 3dobj-renderer +INCLUDEPATH += . + +# You can make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# Please consult the documentation of the deprecated API in order to know +# how to port your code away from it. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +# Input +SOURCES += main.cpp +FORMS += mainwindow.ui + +QT += core gui widgets diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..3571e30 --- /dev/null +++ b/main.cpp @@ -0,0 +1,12 @@ +#include +#include +#include "ui_mainwindow.h" + +int main(int argc, char **argv) { + QApplication app(argc, argv); + QMainWindow w; + Ui::MainWindow ui; + ui.setupUi(&w); + w.show(); + return app.exec(); +} diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..a32002c --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,38 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + +