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

    QGraphicsProxyWidget *proxy = scene->addWidget(widget);
    proxy->setFlags(QGraphicsItem::ItemIsFocusable | QGraphicsItem::ItemIsSelectable);
    now, any operation on this widget is invalid.just like the widget is disabled. Any suggestions what I have to do?

    Best regards,


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.