首页 开发技术 C++     /    Qt鼠标拖动绘制基本几何图形(直线、矩形、圆形、椭圆)并可进行拖动

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

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

文件下载

资源详情

[{"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
  • 不倒的土豆:
    代码是不错。切换画笔的快捷键是数字1234。2020-01-13
  • weixin_40428000:
    怎么就只有直线2019-10-24
  • starytx:
    先看看怎么样再说。2019-08-28

免责申明

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