[Qt-interest] Movable QGraphicsProxyWidget
Peter Kümmel
syntheticpp at gmx.net
Tue Mar 17 22:36:20 CET 2009
How could I make a QGraphicsProxyWidget instance movable?
This code only works for the added text:
QGraphicsScene* scene = new QGraphicsScene;
QGraphicsItem* item = scene->addText("T");
item->setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
item = scene->addWidget(new QLabel("W"));
item->setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
Many thanks,
Peter
More information about the Qt-interest-old
mailing list