Skip to content

Commit 0f69882

Browse files
committed
🎨⚑️πŸ”₯πŸ”₯πŸ”₯πŸ”₯
1 parent a1541eb commit 0f69882

File tree

5 files changed

+68
-5
lines changed

5 files changed

+68
-5
lines changed

Diff for: β€ŽREADME.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Program-xamples
22

3-
桋试一下葨情
4-
5-
6-
θΏ™ζ˜―δΈ€η³»εˆ—ηš„η¨‹εΊζ¨‘η‰ˆ
3+
θΏ™ζ˜―δΈ€δΈͺdemoι›†εˆοΌŒι‡Œι’ζœ‰ζˆ‘ζ‰€ζ•΄η†ηš„δ»£η η»“ζž„οΌˆε―δ»₯η›΄ζŽ₯ε€εˆΆη²˜θ΄΄ηš„ι‚£η§οΌ‰
74

85
每δΈͺεˆ†ζ”―ε―ΉεΊ”ηš„δΏ‘ζ―ε¦‚δΈ‹οΌš
9-
6+
1.Dbusdemo δΈ€δΈͺι€‚η”¨δΊŽqtηš„D-bus
7+
2.plugindemo δΈ€δΈͺ基于qtηš„ζ’δ»Άδ»£η η»“ζž„
8+
3.qglobalstaticdemo δΈ€δΈͺ基于qtηš„ Q_GLOBAL_STATIC ε•δΎ‹η»“ζž„δ»£η 

Diff for: β€Žmain.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "mainwindow.h"
2+
3+
#include <QApplication>
4+
5+
int main(int argc, char *argv[])
6+
{
7+
QApplication a(argc, argv);
8+
MainWindow w;
9+
w.show();
10+
return a.exec();
11+
}

Diff for: β€Žmainwindow.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "mainwindow.h"
2+
3+
MainWindow::MainWindow(QWidget *parent)
4+
: QMainWindow(parent)
5+
{
6+
}
7+
8+
MainWindow::~MainWindow()
9+
{
10+
}
11+

Diff for: β€Žmainwindow.h

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef MAINWINDOW_H
2+
#define MAINWINDOW_H
3+
4+
#include <QMainWindow>
5+
6+
class MainWindow : public QMainWindow
7+
{
8+
Q_OBJECT
9+
10+
public:
11+
MainWindow(QWidget *parent = nullptr);
12+
~MainWindow();
13+
};
14+
#endif // MAINWINDOW_H

Diff for: β€Žtest.pro

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
QT += core gui
2+
3+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
4+
5+
CONFIG += c++11
6+
7+
# The following define makes your compiler emit warnings if you use
8+
# any Qt feature that has been marked deprecated (the exact warnings
9+
# depend on your compiler). Please consult the documentation of the
10+
# deprecated API in order to know how to port your code away from it.
11+
DEFINES += QT_DEPRECATED_WARNINGS
12+
13+
# You can also make your code fail to compile if it uses deprecated APIs.
14+
# In order to do so, uncomment the following line.
15+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
16+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
17+
18+
SOURCES += \
19+
main.cpp \
20+
mainwindow.cpp
21+
22+
HEADERS += \
23+
mainwindow.h
24+
25+
# Default rules for deployment.
26+
qnx: target.path = /tmp/$${TARGET}/bin
27+
else: unix:!android: target.path = /opt/$${TARGET}/bin
28+
!isEmpty(target.path): INSTALLS += target

0 commit comments

Comments
Β (0)