Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mahuifa
QMDemo
提交
de0a895c
Q
QMDemo
项目概览
mahuifa
/
QMDemo
通知
1
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
QMDemo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
de0a895c
编写于
8月 15, 2022
作者:
mahuifa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新功能:新增图片合成Demo
上级
a2165e84
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
116 addition
and
1 deletion
+116
-1
FunctionalModule/NtpClient/ntpclient.cpp
FunctionalModule/NtpClient/ntpclient.cpp
+4
-0
PaintingDemo/Imagecomposition/Imagecomposition.pro
PaintingDemo/Imagecomposition/Imagecomposition.pro
+44
-0
PaintingDemo/Imagecomposition/main.cpp
PaintingDemo/Imagecomposition/main.cpp
+11
-0
PaintingDemo/Imagecomposition/widget.cpp
PaintingDemo/Imagecomposition/widget.cpp
+15
-0
PaintingDemo/Imagecomposition/widget.h
PaintingDemo/Imagecomposition/widget.h
+21
-0
PaintingDemo/Imagecomposition/widget.ui
PaintingDemo/Imagecomposition/widget.ui
+19
-0
PaintingDemo/PaintingDemo.pro
PaintingDemo/PaintingDemo.pro
+2
-1
未找到文件。
FunctionalModule/NtpClient/ntpclient.cpp
浏览文件 @
de0a895c
...
...
@@ -168,6 +168,10 @@ void NtpClient::on_readData()
}
/**
* @brief 设置系统时间(注意:这个功能需要使用管理员权限或者超级用户权限)
* @param dateTime
*/
void
NtpClient
::
setDateTime
(
QDateTime
&
dateTime
)
{
QDate
date
=
dateTime
.
date
();
...
...
PaintingDemo/Imagecomposition/Imagecomposition.pro
0 → 100644
浏览文件 @
de0a895c
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
=
0
x060000
#
disables
all
the
APIs
deprecated
before
Qt
6.0
.
0
SOURCES
+=
\
main
.
cpp
\
widget
.
cpp
HEADERS
+=
\
widget
.
h
FORMS
+=
\
widget
.
ui
#
Default
rules
for
deployment
.
qnx
:
target
.
path
=
/
tmp
/
$$
{
TARGET
}
/
bin
else
:
unix
:
!
android
:
target
.
path
=
/
opt
/
$$
{
TARGET
}
/
bin
!
isEmpty
(
target
.
path
)
:
INSTALLS
+=
target
contains
(
QT_ARCH
,
i386
){
#
使用
32
位编译器
DESTDIR
=
$$
PWD
/../
bin
#
程序输出路径
}
else
{
DESTDIR
=
$$
PWD
/../
bin64
#
使用
64
位编译器
}
#
msvc
编译器使用
utf
-
8
编码(好像只在
msvc2017以后才有效
)
msvc
{
QMAKE_CFLAGS
+=
/
utf
-
8
QMAKE_CXXFLAGS
+=
/
utf
-
8
}
PaintingDemo/Imagecomposition/main.cpp
0 → 100644
浏览文件 @
de0a895c
#include "widget.h"
#include <QApplication>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
a
(
argc
,
argv
);
Widget
w
;
w
.
show
();
return
a
.
exec
();
}
PaintingDemo/Imagecomposition/widget.cpp
0 → 100644
浏览文件 @
de0a895c
#include "widget.h"
#include "ui_widget.h"
Widget
::
Widget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
,
ui
(
new
Ui
::
Widget
)
{
ui
->
setupUi
(
this
);
}
Widget
::~
Widget
()
{
delete
ui
;
}
PaintingDemo/Imagecomposition/widget.h
0 → 100644
浏览文件 @
de0a895c
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace
Ui
{
class
Widget
;
}
QT_END_NAMESPACE
class
Widget
:
public
QWidget
{
Q_OBJECT
public:
Widget
(
QWidget
*
parent
=
nullptr
);
~
Widget
();
private:
Ui
::
Widget
*
ui
;
};
#endif // WIDGET_H
PaintingDemo/Imagecomposition/widget.ui
0 → 100644
浏览文件 @
de0a895c
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
Widget
</class>
<widget
class=
"QWidget"
name=
"Widget"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
800
</width>
<height>
600
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Widget
</string>
</property>
</widget>
<resources/>
<connections/>
</ui>
PaintingDemo/PaintingDemo.pro
浏览文件 @
de0a895c
TEMPLATE
=
subdirs
SUBDIRS
+=
basicdrawing
#
QPainter
基本绘图
Demo
SUBDIRS
+=
basicdrawing
\
#
QPainter
基本绘图
Demo
Imagecomposition
SUBDIRS
+=
Concentriccircles
#
QPainter
绘制时【数据类型】和【抗锯齿】对效果的影响
SUBDIRS
+=
PainterPaths
#
QPainterPath
使用示例
SUBDIRS
+=
Transformations
#
QPainter
偏移原点、旋转、缩放功能
Demo
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录