Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mahuifa
QMDemo
提交
e7e4f2cf
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,发现更多精彩内容 >>
提交
e7e4f2cf
编写于
8月 05, 2022
作者:
mahuifa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
重构:将PlayImage工程移动到PaintingDemo模块中
上级
448a889b
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
21 addition
and
20 deletion
+21
-20
PaintingDemo/PaintingDemo.md
PaintingDemo/PaintingDemo.md
+15
-2
PaintingDemo/PaintingDemo.pro
PaintingDemo/PaintingDemo.pro
+5
-4
PaintingDemo/PlayImage/0.jpg
PaintingDemo/PlayImage/0.jpg
+0
-0
PaintingDemo/PlayImage/1.jpg
PaintingDemo/PlayImage/1.jpg
+0
-0
PaintingDemo/PlayImage/2.jpg
PaintingDemo/PlayImage/2.jpg
+0
-0
PaintingDemo/PlayImage/PlayImage.pro
PaintingDemo/PlayImage/PlayImage.pro
+0
-0
PaintingDemo/PlayImage/image.qrc
PaintingDemo/PlayImage/image.qrc
+0
-0
PaintingDemo/PlayImage/main.cpp
PaintingDemo/PlayImage/main.cpp
+0
-0
PaintingDemo/PlayImage/playimage.cpp
PaintingDemo/PlayImage/playimage.cpp
+0
-0
PaintingDemo/PlayImage/playimage.h
PaintingDemo/PlayImage/playimage.h
+0
-0
PaintingDemo/PlayImage/widget.cpp
PaintingDemo/PlayImage/widget.cpp
+0
-0
PaintingDemo/PlayImage/widget.h
PaintingDemo/PlayImage/widget.h
+0
-0
PaintingDemo/PlayImage/widget.ui
PaintingDemo/PlayImage/widget.ui
+0
-0
QMDemo.pro
QMDemo.pro
+1
-1
README.assets/playImage.gif
README.assets/playImage.gif
+0
-0
README.md
README.md
+0
-13
未找到文件。
PaintingDemo/PaintingDemo.md
浏览文件 @
e7e4f2cf
...
...
@@ -12,13 +12,14 @@
| Transformations | QPainter偏移原点、旋转、缩放功能Demo |
| Concentriccircles | QPainter绘制时【数据类型】和【抗锯齿】对效果的影响 |
| PainterPaths | QPainterPath使用示例 |
| PlayImage | Qt使用QPainter绘制方式显示图片 |
## 2、相关博客
*
[
CSDN
](
https://blog.csdn.net/qq_43627907/category_11970609.html
)
## 3、实现效果
...
...
@@ -59,4 +60,16 @@
> 1. QPainterPath使用示例,包含QPainterPath中所有函数的使用方式;
> 2. 采用绘制轮廓和填充两种方式进行绘制,更便于观察效果。
![
image-20220801122927716
](
PaintingDemo.assets/image-20220801122927716.png
)
\ No newline at end of file
![
image-20220801122927716
](
PaintingDemo.assets/image-20220801122927716.png
)
### 1.5 PlayImage
> 1. 使用QPainter绘制方式显示图片;
> 2. 支持传入QPixmap、QImage两种格式;
> 3. 以50Hz频率同时显示64路图片没有压力;
> 4. 使用简单,没有第三方依赖,使用与所有平台、任意编译器;
*
**演示**
*
由于GIF录制频率比较低,所以看起来有点卡。
![
playImage
](
PaintingDemo.assets/playImage.gif
)
\ No newline at end of file
PaintingDemo/PaintingDemo.pro
浏览文件 @
e7e4f2cf
TEMPLATE
=
subdirs
SUBDIRS
+=
basicdrawing
\
#
QPainter
基本绘图
Demo
Concentriccircles
\
#
QPainter
绘制时【数据类型】和【抗锯齿】对效果的影响
PainterPaths
\
#
QPainterPath
使用示例
Transformations
#
QPainter
偏移原点、旋转、缩放功能
Demo
SUBDIRS
+=
basicdrawing
#
QPainter
基本绘图
Demo
SUBDIRS
+=
Concentriccircles
#
QPainter
绘制时【数据类型】和【抗锯齿】对效果的影响
SUBDIRS
+=
PainterPaths
#
QPainterPath
使用示例
SUBDIRS
+=
Transformations
#
QPainter
偏移原点、旋转、缩放功能
Demo
SUBDIRS
+=
PlayImage
#
使用
QPainter
绘制图片
PlayImage/0.jpg
→
P
aintingDemo/P
layImage/0.jpg
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/1.jpg
→
P
aintingDemo/P
layImage/1.jpg
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/2.jpg
→
P
aintingDemo/P
layImage/2.jpg
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/PlayImage.pro
→
P
aintingDemo/P
layImage/PlayImage.pro
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/image.qrc
→
P
aintingDemo/P
layImage/image.qrc
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/main.cpp
→
P
aintingDemo/P
layImage/main.cpp
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/playimage.cpp
→
P
aintingDemo/P
layImage/playimage.cpp
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/playimage.h
→
P
aintingDemo/P
layImage/playimage.h
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/widget.cpp
→
P
aintingDemo/P
layImage/widget.cpp
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/widget.h
→
P
aintingDemo/P
layImage/widget.h
浏览文件 @
e7e4f2cf
文件已移动
PlayImage/widget.ui
→
P
aintingDemo/P
layImage/widget.ui
浏览文件 @
e7e4f2cf
文件已移动
QMDemo.pro
浏览文件 @
e7e4f2cf
...
...
@@ -20,8 +20,8 @@ SUBDIRS += QMPlayer # 视频播放器界面
SUBDIRS
+=
QMNetwork
#
Qt
网络通信程序
Demo
SUBDIRS
+=
XlsxDemo
#
Qt
使用
QXlsx
读写
Excel
Demo
SUBDIRS
+=
QtChartsDemo
#
Qt
使用
QtCharts
绘制图表
Demo
SUBDIRS
+=
PlayImage
#
使用
QPainter
绘制图片
SUBDIRS
+=
QSqlDemo
#
Qt
使用数据库
Demo
SUBDIRS
+=
PaintingDemo
#
使用
QPainter
绘制图片
win32
{
SUBDIRS
+=
TestCrashHandler
#
windows下Qt程序崩溃问题定位Demo
(只在
msvc编译下有效
)
...
...
README.assets/playImage.gif
已删除
100644 → 0
浏览文件 @
448a889b
1.5 MB
README.md
浏览文件 @
e7e4f2cf
...
...
@@ -18,7 +18,6 @@
| TestCrashHandler | windows下程序崩溃定位Demo | windows |
| QMNetwork |
[
Qt网络编程Demo
](
./QMNetwork/QMNetwork.md
)
| |
| QtChartsDemo |
[
Qt使用QtCharts模块绘制图表Demo
](
./QtChartsDemo/QtCharts.md
)
| |
| PlayImage | Qt使用QPainter绘制方式显示图片 | |
| ProgramFramework |
[
用过的一些Qt程序模块设计架构Demo
](
./ProgramFramework/ProgramFramework.md
)
| |
| QSqlDemo |
[
QSql学习Demo
](
./QSqlDemo/QSql.md
)
| |
| QStyleDemo |
[
Qt样式美化设置Demo说明及演示
](
./QStyleDemo/QStyleDemo.md
)
| |
...
...
@@ -133,15 +132,3 @@ Qt实现的视频播放器界面Demo。
![
Dump
](
README.assets/Dump.gif
)
## 6、PlayImage
*
**介绍**
*
使用QPainter绘制方式显示图片;
*
支持传入QPixmap、QImage两种格式;
*
以50Hz频率同时显示64路图片没有压力;
*
使用简单,没有第三方依赖,使用与所有平台、任意编译器;
*
**演示**
*
由于GIF录制频率比较低,所以看起来有点卡。
![
playImage
](
README.assets/playImage.gif
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录