Qt鼠标拖动绘制基本几何图形(直线、矩形、圆形、椭圆) 并可进行拖动

上传者: luoyayun361 | 上传时间: 2019-12-21 20:14:21 | 文件大小: 14KB | 文件类型: zip
用Qt鼠标事件实现基本几何图形的绘制,支持直线、矩形、圆形、椭圆。后期可以在此基础上进行扩展。使用QGraphics完成。 博客地址:https://blog.csdn.net/luoyayun361/article/details/93890331

文件下载

资源详情

( 24 个子文件 14KB ) Qt鼠标拖动绘制基本几何图形(直线、矩形、圆形、椭圆) 并可进行拖动
GraphicShapes
gstempcanvaslayer.cpp 1.90KB
gsrootitem.h 1.23KB
gscommondef.h 456B
gsmainscene.cpp 2.46KB
gsrootitem.cpp 2.34KB
shape
gsshapeovalitem.h 474B
gsshapelineitem.cpp 1.26KB
gsshapecircleitem.cpp 1006B
gsshaperectangeitem.h 496B
gsshaperectangeitem.cpp 823B
gsshapefactory.h 370B
gsshapebaseitem.h 891B
gsshapefactory.cpp 911B
gsshapelineitem.h 472B
gsshapecircleitem.h 486B
gsshapebaseitem.cpp 597B
gsshapeovalitem.cpp 849B
gsshapebaseitem.cpp.autosave 562B
main.cpp 492B
gstempcanvaslayer.h 797B
gsmainscene.h 837B
gsshapeitem.h 664B
GraphicShapes.pro 1.57KB
gsshapeitem.cpp 1.54KB
[{"title":"( 24 个子文件 14KB ) Qt鼠标拖动绘制基本几何图形(直线、矩形、圆形、椭圆) 并可进行拖动","children":[{"title":"GraphicShapes","children":[{"title":"gstempcanvaslayer.cpp <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"gsrootitem.h <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"gscommondef.h <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"gsmainscene.cpp <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"gsrootitem.cpp <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"shape","children":[{"title":"gsshapeovalitem.h <span style='color:#111;'> 474B </span>","children":null,"spread":false},{"title":"gsshapelineitem.cpp <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"gsshapecircleitem.cpp <span style='color:#111;'> 1006B </span>","children":null,"spread":false},{"title":"gsshaperectangeitem.h <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"gsshaperectangeitem.cpp <span style='color:#111;'> 823B </span>","children":null,"spread":false},{"title":"gsshapefactory.h <span style='color:#111;'> 370B </span>","children":null,"spread":false},{"title":"gsshapebaseitem.h <span style='color:#111;'> 891B </span>","children":null,"spread":false},{"title":"gsshapefactory.cpp <span style='color:#111;'> 911B </span>","children":null,"spread":false},{"title":"gsshapelineitem.h <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"gsshapecircleitem.h <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"gsshapebaseitem.cpp <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"gsshapeovalitem.cpp <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"gsshapebaseitem.cpp.autosave <span style='color:#111;'> 562B </span>","children":null,"spread":false}],"spread":false},{"title":"main.cpp <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"gstempcanvaslayer.h <span style='color:#111;'> 797B </span>","children":null,"spread":false},{"title":"gsmainscene.h <span style='color:#111;'> 837B </span>","children":null,"spread":false},{"title":"gsshapeitem.h <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"GraphicShapes.pro <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"gsshapeitem.cpp <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • pengivy :
    还不错,就是没有备注,看起来不太方便
    2020-08-27
  • 不倒的土豆 :
    代码是不错。切换画笔的快捷键是数字 1 2 3 4。
    2020-01-13
  • weixin_40428000 :
    怎么就只有直线
    2019-10-24
  • starytx :
    先看看怎么样再说。
    2019-08-28

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明
服务器状态检查中...