How to embed a QAxWidget into QGraphicsProxyWidget?
Hi, all,
I want to embed a QAxWidget into QGraphicsProxyWidget use the following code:
Code:
widget
->setControl
(QString::fromUtf8("{6BF52A52-394A-11d3-B153-00C04F79FAA6}"));
//Windows Media Player CLSID or Other ActiveX CLSIDQGraphicsProxyWidget *proxy = scene->addWidget(widget);
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
Re: How to embed a QAxWidget into QGraphicsProxyWidget?
RTFM: From QGraphicsScene::addWidget:
Quote:
Note that widgets with the Qt::WA_PaintOnScreen widget attribute set and widgets that wrap an external application or controller are not supported. Examples are QGLWidget and QAxWidget.