Hi,

Hi, I'm embedding and widget into a scene with a QGraphicsProxyWidget but the embedded widget is away from its boundingRect. See following image



Here is the code that adds it:
Qt Code:
  1. QGraphicsProxyWidget *item = new QGraphicsProxyWidget;
  2.  
  3. comboWidget = new myComboBox;
  4. item->setWidget(comboWidget);
  5. comboWidget->setValue("Item 1");
  6.  
  7. QPointF draggedPoint;
  8. draggedPoint.setX(100);
  9. draggedPoint.setY(100);
  10. myscene.addItem(item);
  11. item->setPos(draggedPoint);
  12. item->setFlag(QGraphicsItem::ItemIsMovable, true);
  13. item->setFlag(QGraphicsItem::ItemIsSelectable, true);
To copy to clipboard, switch view to plain text mode 

I have been trying to move the widget to center the boundingRect but nothing seems to work.

Any ideas will be apppreciated,
Carlos.