The reason why I ask is that Qt5 apparently started using libxcb for a 
lot of its underlying X operations.  Unfortunately, since libxcb 
bypasses Xlib, that creates issues with VirtualGL, since VGL relies on 
intercepting certain Xlib functions in order to be informed of things 
like window creation, destruction, and resizing.

I can work around the resize issue easily enough by forcing VirtualGL to 
treat the xcb windows as "foreign" and to set up a separate event loop 
to monitor StructureNotify events to those windows.  That is a simple 
matter of introducing a new environment variable, but I fear that there 
are deeper issues involved and that just getting the cube demo to work 
is not necessarily going to fix all of the Qt5 issues.

I think it may be necessary to interpose on certain key xcb functions in 
order to do this the "right way."  Fortunately, Qt5 does not appear to 
be using the xcb-glx interface, so that limits me to simply interposing 
on the window creation/destruction/event queue functions.  I have my 
concerns about this, though.  Xlib can be built to use xcb as an 
underlying transport layer, so if VirtualGL is interposing on both Xlib 
and xcb and one is calling the other, chaos could ensue.  Thus, I would 
generally only want to enable xcb interposition as a non-default case 
until enough testing has been done to ensure that it doesn't 
accidentally cause the untimely eruption of Krakatoa or something.

If you could provide some simple demo code that demonstrates the other 
issue -- the inability to display any 3D content -- that would be helpful.


On 7/29/14 12:41 AM, peter.ty...@csiro.au wrote:
> An in-house app fails to display any 3D content with VirtualGL since it was 
> migrated to Qt5 from Qt4.  According to the developer no code was changed 
> other than what was required to migrate the app to the Qt5 namespace.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to