如何使QGraphicsItem不随QGraphicsView放大缩小而改变大小

上传者: goforwardtostep | 上传时间: 2021-03-19 13:54:53 | 文件大小: 40KB | 文件类型: ZIP
在使用QGraphicsView过程中,有时候我们需要对view进行缩放,但是对于一般正常的加入view中的item都会随着view的大小变化而变化,但是如果我们想让某些item不随view的缩放进行改变怎么办呢?详情见博客:http://blog.csdn.net/goforwardtostep/article/details/76862952

文件下载

资源详情

[{"title":"( 15 个子文件 40KB ) 如何使QGraphicsItem不随QGraphicsView放大缩小而改变大小","children":[{"title":"CustomItemTest","children":[{"title":".vs","children":[{"title":"CustomItemTest","children":[{"title":"v14","children":[{"title":".suo <span style='color:#111;'> 716.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"CustomItemTest.sln <span style='color:#111;'> 962B </span>","children":null,"spread":false},{"title":"CustomItemTest","children":[{"title":"CustomView.cpp <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"CustomItemTest.qrc <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"CustomItemTest.ui <span style='color:#111;'> 624B </span>","children":null,"spread":false},{"title":"CustomItemTest.h <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"Resources","children":null,"spread":false},{"title":"CustomItemTest.vcxproj.filters <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"CustomItemTest.cpp <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"CustomItemTest.vcxproj <span style='color:#111;'> 12.19KB </span>","children":null,"spread":false},{"title":"x64","children":[{"title":"Debug","children":null,"spread":false}],"spread":true},{"title":"main.cpp <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"CustomView.h <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":"CustomItemTest.vcxproj.user <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"GeneratedFiles","children":null,"spread":false},{"title":"CustomItem.cpp <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"CustomItem.h <span style='color:#111;'> 325B </span>","children":null,"spread":false}],"spread":false},{"title":"x64","children":[{"title":"Debug","children":[{"title":"CustomItemTest.exe <span style='color:#111;'> 97.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Debug","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • cherry584520 :
    66666666666666666666666666666666,很不错
    2019-12-02
  • cherry584520 :
    66666666666666666666666666666666,很不错
    2019-12-02
  • foxgod :
    比较简单易懂。还可以
    2018-10-18
  • foxgod :
    比较简单易懂。还可以
    2018-10-18

免责申明

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