Hi guys,

I have a custom scene, implemented virtual methods:
Qt Code:
  1. void drawBackground..
  2. void drawForeground..
  3. void mouseMoveEvent ..
  4. void mousePressEvent..
  5. void keyPressEvent ..
  6. void keyReleaseEvent..
  7. void contextMenuEvent..
To copy to clipboard, switch view to plain text mode 
Here my view/scene settings
Qt Code:
  1. m_scene->setItemIndexMethod(QGraphicsScene::NoIndex);
  2. m_scene->setSceneRect(QRectF(QPointF(-180,-90),QPointF(180,90)));
  3. ...
  4. m_view->setCacheMode(QGraphicsView::CacheBackground);
  5. m_view->setOptimizationFlag(QGraphicsView::DontClipPainter);
  6. m_view->setOptimizationFlag(QGraphicsView::DontSavePainterState);
  7. m_view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
  8. m_view->setRenderHints( QPainter::HighQualityAntialiasing);
  9. m_view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
  10. m_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
  11. m_view->setScene(m_scene);
  12. m_view->setSceneRect(QRectF(QPointF(-180,-90),QPointF(180,90)));
  13. m_view->setBackgroundColor(m_colorMap.value("NODTA"));
  14. m_view->show();
To copy to clipboard, switch view to plain text mode 
This is the item I create in the scene/view owner class:
Qt Code:
  1. item->setPen(QPen(Qt::red));
  2. item->setBrush(QBrush(Qt::red));
  3. item->setFlag(QGraphicsItem::ItemIsMovable);
  4. item->setVisible(true);
  5. m_scene->addItem(item);
To copy to clipboard, switch view to plain text mode 
The ellipse is shown, can be selected(if I turn the flag on), but I can't move the item? The question is why?

Thanks.

Kacper