Now i counter another problem, the class which inherit from QGraphicsItem can't be moved and seletable.
and i have setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable)
in it's constructor,but it still can move.(i also try to put setFlags of this item in any possible postion, but it still can't be moved)
but i also add a ellipse item in the scene, howerver,the ellipse item can move.
Why? I don't understand why this happen to this item?
Wish anyone's help soonly !Thank you!





Reply With Quote
Bookmarks