Qt Labs Forum » General discussions

QAxWidgets in QGraphicsView

(1 post)
  • Started 3 months ago by jcralley

  1. jcralley
    jcralley
    Member

    Hi,

    I am working on a project that needs to combine regular controls, OpenGL controls and ActiveX controls into one scene. I need to be able to composite them all with transparency effects. Unfortunately, I am having difficulty with the ActiveX controls. When QGraphicsView came out with support for widgets, I thought perhaps my problems were solved! But alas, it seems that I am stuck with the same problems I have had simply trying to draw the AX controls offscreen in a normal window.

    1. I had to use Windows messaging to get mouse events to the control.
    2. I could not (easily) intercept keyboard input from the AX control in order to update the onscreen image.
    3. If I don't parent the AX control on a widget owned by the main window of my app, then the AX control steals focus from my main window, causing the main window's title bar to go inactive.

    In addition, if I don't parent the control on another widget before adding it to the scene, it won't draw the control at all (actually, it draws a white rectangle).

    Is there any way to get around these issues?

    Thanks,

    Jay

    Posted: 3 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.