commit
75ee801750
6 changed files with 136 additions and 0 deletions
@ -0,0 +1,73 @@ |
||||
# This file is used to ignore files which are generated |
||||
# ---------------------------------------------------------------------------- |
||||
|
||||
*~ |
||||
*.autosave |
||||
*.a |
||||
*.core |
||||
*.moc |
||||
*.o |
||||
*.obj |
||||
*.orig |
||||
*.rej |
||||
*.so |
||||
*.so.* |
||||
*_pch.h.cpp |
||||
*_resource.rc |
||||
*.qm |
||||
.#* |
||||
*.*# |
||||
core |
||||
!core/ |
||||
tags |
||||
.DS_Store |
||||
.directory |
||||
*.debug |
||||
Makefile* |
||||
*.prl |
||||
*.app |
||||
moc_*.cpp |
||||
ui_*.h |
||||
qrc_*.cpp |
||||
Thumbs.db |
||||
*.res |
||||
*.rc |
||||
/.qmake.cache |
||||
/.qmake.stash |
||||
|
||||
# qtcreator generated files |
||||
*.pro.user* |
||||
|
||||
# xemacs temporary files |
||||
*.flc |
||||
|
||||
# Vim temporary files |
||||
.*.swp |
||||
|
||||
# Visual Studio generated files |
||||
*.ib_pdb_index |
||||
*.idb |
||||
*.ilk |
||||
*.pdb |
||||
*.sln |
||||
*.suo |
||||
*.vcproj |
||||
*vcproj.*.*.user |
||||
*.ncb |
||||
*.sdf |
||||
*.opensdf |
||||
*.vcxproj |
||||
*vcxproj.* |
||||
|
||||
# MinGW generated files |
||||
*.Debug |
||||
*.Release |
||||
|
||||
# Python byte code |
||||
*.pyc |
||||
|
||||
# Binaries |
||||
# -------- |
||||
*.dll |
||||
*.exe |
||||
|
@ -0,0 +1,24 @@ |
||||
QT += core gui |
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
||||
|
||||
CONFIG += c++11 |
||||
|
||||
# You can make your code fail to compile if it uses deprecated APIs. |
||||
# In order to do so, uncomment the following line. |
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 |
||||
|
||||
SOURCES += \ |
||||
main.cpp \ |
||||
mainwindow.cpp |
||||
|
||||
HEADERS += \ |
||||
mainwindow.h |
||||
|
||||
TRANSLATIONS += \ |
||||
ZIDE_zh_CN.ts |
||||
|
||||
# Default rules for deployment. |
||||
qnx: target.path = /tmp/$${TARGET}/bin |
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin |
||||
!isEmpty(target.path): INSTALLS += target |
@ -0,0 +1,3 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!DOCTYPE TS> |
||||
<TS version="2.1" language="zh_CN"></TS> |
@ -0,0 +1,11 @@ |
||||
#include "mainwindow.h" |
||||
|
||||
#include <QApplication> |
||||
|
||||
int main(int argc, char *argv[]) |
||||
{ |
||||
QApplication a(argc, argv); |
||||
MainWindow w; |
||||
w.show(); |
||||
return a.exec(); |
||||
} |
@ -0,0 +1,11 @@ |
||||
#include "mainwindow.h" |
||||
|
||||
MainWindow::MainWindow(QWidget *parent) |
||||
: QMainWindow(parent) |
||||
{ |
||||
} |
||||
|
||||
MainWindow::~MainWindow() |
||||
{ |
||||
} |
||||
|
@ -0,0 +1,14 @@ |
||||
#ifndef MAINWINDOW_H |
||||
#define MAINWINDOW_H |
||||
|
||||
#include <QMainWindow> |
||||
|
||||
class MainWindow : public QMainWindow |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
MainWindow(QWidget *parent = nullptr); |
||||
~MainWindow(); |
||||
}; |
||||
#endif // MAINWINDOW_H
|
Loading…
Reference in new issue