- use QGraphicsScene::addWidget. Obviously, you need available QGraphicsScene object by hand. See bellow
QGraphicsProxyWidget *proxy = scene.addWidget(groupBox);
- Use QGraphicsProxyWidge::setWidget. And you can add this QGraphicsProxyWidget to scene afterwards
proxy->setWidget(groupBox);
No comments:
Post a Comment