Move an embedded widget in QGraphicsProxyWidget in a QGraphicsView/QGraphicsScene
<p>I am trying to move with the mouse a push button on a QGraphicsView but is not
working, some body can help me whit my issue?</p>

<pre><code>int main(int argc, char *argv[]) {
  QApplication app(argc, argv);
  MainWindow windows;
  QGraphicsScene scene(&amp;windows);
  QGraphicsView view(&amp;scene, &amp;windows);
  QGraphicsProxyWidget *proxy = scene.addWidget(new QPushButton("MOVE IT"));
  proxy-&gt;setFlags(QGraphicsItem::ItemIsMovable |
                  QGraphicsItem::ItemIsSelectable |
                  QGraphicsItem::ItemSendsGeometryChanges |
                  QGraphicsItem::ItemSendsScenePositionChanges);
  windows.setCentralWidget(&amp;view);
  windows.show();
  return app.exec();
}
</code></pre>

<p>PD: Ignore my memory leaks here please.</p>