Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to embed a QAxWidget into QGraphicsProxyWidget?
Forum Updated to NodeBB v4.3 + New Features

How to embed a QAxWidget into QGraphicsProxyWidget?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 799 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Junan
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved