From 4cb16a14784285e1113bbbfcedcacfbb18996e3e Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 27 Oct 2022 10:39:12 +0300 Subject: [PATCH] empty qt6 mainwindow --- shadPS4/gui/shadps4gui.cpp | 10 ++++++++++ shadPS4/gui/shadps4gui.h | 16 ++++++++++++++++ shadPS4/gui/shadps4gui.ui | 22 ++++++++++++++++++++++ shadPS4/main.cpp | 10 ++++++++++ shadPS4/shadPS4.vcxproj | 29 ++++++++++++++++------------- shadPS4/shadPS4.vcxproj.filters | 20 +++++++++++++++++++- 6 files changed, 93 insertions(+), 14 deletions(-) create mode 100644 shadPS4/gui/shadps4gui.cpp create mode 100644 shadPS4/gui/shadps4gui.h create mode 100644 shadPS4/gui/shadps4gui.ui create mode 100644 shadPS4/main.cpp diff --git a/shadPS4/gui/shadps4gui.cpp b/shadPS4/gui/shadps4gui.cpp new file mode 100644 index 00000000..60157bb1 --- /dev/null +++ b/shadPS4/gui/shadps4gui.cpp @@ -0,0 +1,10 @@ +#include "shadps4gui.h" + +shadps4gui::shadps4gui(QWidget *parent) + : QMainWindow(parent) +{ + ui.setupUi(this); +} + +shadps4gui::~shadps4gui() +{} diff --git a/shadPS4/gui/shadps4gui.h b/shadPS4/gui/shadps4gui.h new file mode 100644 index 00000000..aca95017 --- /dev/null +++ b/shadPS4/gui/shadps4gui.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include "ui_shadps4gui.h" + +class shadps4gui : public QMainWindow +{ + Q_OBJECT + +public: + shadps4gui(QWidget *parent = nullptr); + ~shadps4gui(); + +private: + Ui::shadps4guiClass ui; +}; diff --git a/shadPS4/gui/shadps4gui.ui b/shadPS4/gui/shadps4gui.ui new file mode 100644 index 00000000..af43613b --- /dev/null +++ b/shadPS4/gui/shadps4gui.ui @@ -0,0 +1,22 @@ + + shadps4guiClass + + + shadps4guiClass + + + + 0 + 0 + 600 + 400 + + + + shadps4gui + + + + + + diff --git a/shadPS4/main.cpp b/shadPS4/main.cpp new file mode 100644 index 00000000..feb4f413 --- /dev/null +++ b/shadPS4/main.cpp @@ -0,0 +1,10 @@ +#include "gui/shadps4gui.h" +#include + +int main(int argc, char* argv[]) +{ + QApplication a(argc, argv); + shadps4gui w; + w.show(); + return a.exec(); +} \ No newline at end of file diff --git a/shadPS4/shadPS4.vcxproj b/shadPS4/shadPS4.vcxproj index ed41a910..3b0475aa 100644 --- a/shadPS4/shadPS4.vcxproj +++ b/shadPS4/shadPS4.vcxproj @@ -1,7 +1,7 @@  - + Debug x64 @@ -10,13 +10,22 @@ x64 + + + + + + + + + + {F005E4D9-1FBE-40B3-9FBD-35CEC59081CD} QtVS_v304 10.0.19041.0 10.0.19041.0 - $(MSBuildProjectDirectory)\QtMsBuild + $(MSBuildProjectDirectory)\QtMsBuild @@ -33,19 +42,16 @@ qt6.4.0 - + core;gui;widgets debug qt6.4.0 - + core;gui;widgets release - - + + @@ -88,9 +94,6 @@ false - - - diff --git a/shadPS4/shadPS4.vcxproj.filters b/shadPS4/shadPS4.vcxproj.filters index 43551544..d138719c 100644 --- a/shadPS4/shadPS4.vcxproj.filters +++ b/shadPS4/shadPS4.vcxproj.filters @@ -22,4 +22,22 @@ ts - + + + Source Files + + + Source Files + + + + + Header Files + + + + + Form Files + + + \ No newline at end of file