タイトルの手がかりとして、グループ自体を回転させたり、子アイテムを繰り返したりして、グループの境界矩形を回転させようとしました。
ビューに表示されているように、グループが形状を境界調整するために何らかのリフレッシュが必要ですか?
PySide のスニペット:
R1 = scene.addRect(itemGroup.boundingRect())
R1.setPos(itemGroup.pos())
scene.addRect(itemGroup.boundingR())
# case 1 - Rotate group through iteration
for item in itemGroup.childItems() :
item.rotate(90)
# case 2 - Rotete whole group
itemGroup.rotate(90)
R2 = scene.addRect(itemGroup.boundingRect())
R2.setPos(itemGroup.pos())