Advertisement Jump to content
Sign in to follow this  
paic

Integrating DirectX with Qt ?

This topic is 4880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, I was wondering if integrating DirectX with Qt is possible. It seems to be as I found some mailing lists with references to that. But I can't find HOW to do it. So if anybody here can help me (links, explanations, whatever can help me ^^)

Share this post


Link to post
Share on other sites
Advertisement
I have read an idea on a mail list that used something like that:

1. Derive an object from QWidget and define a IDirect3DDevice9* as a member.

2. In the constructor do the common dirext3d device initialization preparations and when creating the device use

this->topLevelWidget()->winId()

as the wHND argument of the CreateDevice method.

Also may be handle the resize situations (like retransforming the projection matrix etc.) overwriting the paintEvent of the widget.

I didnt have the chance to give it a try but will in a close future.

May be give some more ideas after that trial.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!