造轮子之----Qt自定义网络图片显示控件ImageView
Tofloor
poster avatar
Snail1991
deepin
2017-08-14 21:45
Author
本帖最后由 Snail1991 于 2017-8-14 13:49 编辑



Qt自定义图片显示控件
  • 支持加载显示网络图片(可指定加载中显示的图片,加载失败显示的图片)
  • 支持加载本地图片
  • 加载网络图片时支持缓存到本地
  • 增加图片展示样式 默认、cover、contain具体用法参照mainwindow.cpp或效果图
  • 使用是需要在项目xxx.pro文件引入network
仅用于学习交流,暂时未用于实际项目,再加上本身技术不到位,可能存在着部分问题,可根据需要自行修改。


Reply Favorite View the author
All Replies
avatar
emofode
deepin
2017-08-15 00:55
#1
为什么不用 image.scaled
Reply View the author
avatar
Snail1991
deepin
2017-08-15 01:10
#2
https://bbs.deepin.org/post/144159
为什么不用 image.scaled

控件宽高和图片宽高比例不同呢
Reply View the author
avatar
rekols
deepin
2017-08-15 01:21
#3
大赞。  
Reply View the author
avatar
emofode
deepin
2017-08-15 01:32
#4
https://bbs.deepin.org/post/144159
控件宽高和图片宽高比例不同呢

aspectRatioMode
Reply View the author
avatar
Snail1991
deepin
2017-08-15 01:38
#5
emofode 发表于 2017-8-14 17:32
aspectRatioMode

Reply View the author
avatar
rekols
deepin
2017-08-16 00:35
#6

大神快造一个加到dtk
Reply View the author