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:
QGraphicsProxyWidget *item = new QGraphicsProxyWidget;
comboWidget = new myComboBox;
item->setWidget(comboWidget);
comboWidget->setValue("Item 1");
draggedPoint.setX(100);
draggedPoint.setY(100);
myscene.addItem(item);
item->setPos(draggedPoint);
QGraphicsProxyWidget *item = new QGraphicsProxyWidget;
comboWidget = new myComboBox;
item->setWidget(comboWidget);
comboWidget->setValue("Item 1");
QPointF draggedPoint;
draggedPoint.setX(100);
draggedPoint.setY(100);
myscene.addItem(item);
item->setPos(draggedPoint);
item->setFlag(QGraphicsItem::ItemIsMovable, true);
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.
Bookmarks