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.
クリックせずにカーソルを追従するカスタム グラフィック アイテムを作成したいと考えています。ビューには がsetMouseTracking(true)あり、グラフィックス アイテムにはsetFlag(ItemIsMovable, true); setAcceptHoverEvents(true);がありますが、カーソルを追跡しません。クリック アンド ドラッグする必要があります。QGraphicsItemカーソルを追従させる適切な方法は何ですか?
setMouseTracking(true)
setFlag(ItemIsMovable, true); setAcceptHoverEvents(true);
QGraphicsItem