Hi...

I've a QGraphicsWidget and I want to select it..

I use the

Qt Code:
  1. setFlag(QGraphicsWidget::ItemIsMovable, true);
To copy to clipboard, switch view to plain text mode 

or the same:

Qt Code:
  1. setFlag(QGraphicsItem::ItemIsMovable,true);
To copy to clipboard, switch view to plain text mode 

but it doesn't work. I've reimplemented the paint method to draw the image.

If I use the QGraphicsPixmapItem (using the same code line) it works..

Where is my mistake?! Does the use of the paint method can "disable" the movable function of the items?

Thanks