This commit is contained in:
Вячеслав Штейбезандт 2024-11-25 11:44:21 +03:00
commit 59e9fb65a3
7 changed files with 158 additions and 0 deletions

56
.gitignore vendored Normal file
View File

@ -0,0 +1,56 @@
# ---> Qt
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
*_qmlcache.qrc

31
M3KTE_TERM.pro Normal file
View File

@ -0,0 +1,31 @@
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# 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
SOURCES += \
main.cpp \
m3kte.cpp
HEADERS += \
m3kte.h
FORMS += \
m3kte.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# M3KTE_TERM

15
m3kte.cpp Normal file
View File

@ -0,0 +1,15 @@
#include "m3kte.h"
#include "ui_m3kte.h"
M3KTE::M3KTE(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::M3KTE)
{
ui->setupUi(this);
}
M3KTE::~M3KTE()
{
delete ui;
}

21
m3kte.h Normal file
View File

@ -0,0 +1,21 @@
#ifndef M3KTE_H
#define M3KTE_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class M3KTE; }
QT_END_NAMESPACE
class M3KTE : public QMainWindow
{
Q_OBJECT
public:
M3KTE(QWidget *parent = nullptr);
~M3KTE();
private:
Ui::M3KTE *ui;
};
#endif // M3KTE_H

22
m3kte.ui Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>M3KTE</class>
<widget class="QMainWindow" name="M3KTE">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>M3KTE</string>
</property>
<widget class="QWidget" name="centralwidget"/>
<widget class="QMenuBar" name="menubar"/>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>

11
main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "m3kte.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
M3KTE w;
w.show();
return a.exec();
}