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