---
title: "QGraphicsWidget的geometry和boundingRect是什么关系？"
author: "johnsmith9th"
date: "2012-12-25T17:08:14Z"
tags: []
categories: ["编程语言"]
slug: "qgraphicswidget-geometry-boundingrect"
draft: false
lastmod: "2012-12-25T17:08:14Z"
id: 1753953
url: "https://johnsmith9th.iteye.com/blog/1753953"
---

QGraphicsWidget的boundingRect的概念和QGraphicsWidget的windowFrameRect等价，所以QGraphicsWidget的boundingRect略大于或者等于QGraphicsWidget的geometry，取决于这个Widget有没有windowFrame，缺省情况下也就是取决于Style和WindowFlags。
