How to embed a QAxWidget into QGraphicsProxyWidget?
-
I want to embed a QAxWidget into QGraphicsProxyWidget use the following code:
@QGraphicsScene *scene = new QGraphicsScene(0, 0, 800, 600);
QGraphicsView *view = new QGraphicsView(scene);QAxWidget *widget = new QAxWidget();
//Windows Media Player CLSID or Other ActiveX CLSID
widget->setControl(QString::fromUtf8("{6BF52A52-394A-11d3-B153-00C04F79FAA6}"));QGraphicsProxyWidget *proxy = scene->addWidget(widget);
proxy->setFlags(QGraphicsItem::ItemIsFocusable | QGraphicsItem::ItemIsSelectable);
view->setScene(scene);
view->show();
@
now, any operation on this widget is invalid.just like the widget is disabled. Any suggestions what I have to do?Best regards,
Junan