Separate PACS Module.
This commit is contained in:
15
DIDKit/App/DIDMainWindow.cpp
Normal file
15
DIDKit/App/DIDMainWindow.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Created by Krad on 2022/9/20.
|
||||
//
|
||||
|
||||
#include "DIDMainWindow.h"
|
||||
#include "PACS/Widget/ImportWidget.h"
|
||||
|
||||
DIDMainWindow::DIDMainWindow(QWidget *parent) {
|
||||
auto m_import = new ImportWidget(this);
|
||||
m_import->show();
|
||||
}
|
||||
|
||||
DIDMainWindow::~DIDMainWindow() {
|
||||
|
||||
}
|
||||
20
DIDKit/App/DIDMainWindow.h
Normal file
20
DIDKit/App/DIDMainWindow.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by Krad on 2022/9/20.
|
||||
//
|
||||
|
||||
#ifndef OMEGAV_DIDMAINWINDOW_H
|
||||
#define OMEGAV_DIDMAINWINDOW_H
|
||||
|
||||
#include <QtWidgets/QMainWindow>
|
||||
|
||||
class DIDMainWindow : public QMainWindow{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DIDMainWindow(QWidget *parent = Q_NULLPTR);
|
||||
~DIDMainWindow();
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //OMEGAV_DIDMAINWINDOW_H
|
||||
24
DIDKit/App/app.cpp
Normal file
24
DIDKit/App/app.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// Created by Krad on 2022/9/20.
|
||||
//
|
||||
|
||||
#include <QTextCodec>
|
||||
#include <QApplication>
|
||||
#include <QFont>
|
||||
|
||||
#include "DIDMainWindow.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
QTextCodec* codec = QTextCodec::codecForName("GB2312");
|
||||
QTextCodec::setCodecForLocale(codec);
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Arial"));
|
||||
QApplication::setFont(font);
|
||||
|
||||
DIDMainWindow w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user