On Thu, Dec 10, 2009 at 4:08 AM, Aren [via Software]
<[email protected]> wrote:
>     const OSWindow*    osWindow  = window->getOSWindow();
>     const WGLWindowIF* wglWindow = dynamic_cast< const WGLWindowIF*
>>(osWindow);
>     if( !wglWindow )
>     {
>         EQWARN << "Window does not use a WGL window" << endl;
>         return false;
>     }
>
> because we use QTWindowIF, so dynamic_cast to WGLWindowIF failed, and return
> false.Then cause other lots of problems.
> How to fix it, any suggestion?

You can implement WGLWindowIF for your QTWindow. Iirc it only needs to
return the WGL-specific RC and DC, which you can hopefully query from
Qt.


HTH,

Stefan

-- 
View this message in context: 
http://n2.nabble.com/Re-problem-when-integrate-into-QT-tp4079765p4144171.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.
_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to