Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下の図の上半分に示すように、カスタム グラフィックを含む QGraphicsItem があります。ここで、赤い円はshape()項目です。
shape()
グラフィックを保持する方法はありますが、図の下半分に示すようにシフトするだけですか?
QGraphicsItemは形なしで動かすことができるとは思いません。ShapeはQGraphicsItemにバインドされています。QGraphicsItemに従って座標を変更します。
イチジクの後半のようなものを達成したい場合。2つのQGraphicsItemが必要です(1つは赤い外側の円で、2つ目は内側のグラフィックアイテムです)。