QT的boundingRect
时间: 2023-10-21 07:58:20 浏览: 180
在Qt中,boundingRect是QGraphicsItem类的一个函数,用来返回一个表示图元边界矩形的QRectF对象。它通常被用于碰撞检测和场景布局等操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [使用QT实现简单的画图功能(二)](https://blog.csdn.net/qq_35554617/article/details/106392349)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [QT自定义图形项中的boundingRect()和shape()函数的理解](https://blog.csdn.net/weixin_39583140/article/details/93599949)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文