Hello everybody..
I've a question about QGraphicsItem.
I've casted a qml file to QGraphicsItem (by creating a object by engine). And it's OK . But when i add this QGraphicsItem into a scene and view and i set its flag to be movable nothing will do when i try to drag it.
Here is the code:

QDeclarativeEngine engine;
QDeclarativeComponent component(&engine,QUrl::fromLocalFile("qml/TabbedPage/Dial.qml"));

QObject *object = component.create();

QGraphicsItem *newItem = qobject_cast<QGraphicsItem *>(object);
newItem->setFlags(QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable);
newItem->setAcceptsHoverEvents(true);
newItem->setAcceptedMouseButtons(Qt::LeftButton);
scene.addItem(newItem);
view.setScene(&scene);
view.show();

What's the problem? !