Hey all,
I just recently upgraded to Qt 4.6 and now whenever I run osgViewerQt or osgViewerQtWidget, the context menus (right click the toolbar in osgViewerQtWidget) either only show a border or show the menu, but don't highlight actions hovered over depending on some Windows visual effects settings. The farthest I could track this down was the update() message for the QMenu not being delivered until after the QMenu gets hidden. I was following the code in both Qt's QGLWidget examples and osgViewerQtWidget and the point where the callstack differs seems to be somewhere in user32.dll, which is a Windows dll I can't debug. I found a workaround that resolves the QMenu problem, but I have no idea why it works. If you change the amount of time on the QTimer updating the QGLWidget from 10 milliseconds to 20, then the QMenu works properly. I'm not sure why this works, but it's the amount of time Qt's timer was set to in their example. Has anyone experienced this problem or have any ideas on it? Just to be clear, it's only the right-click menus and submenus that have this problem. Regular menus at the top of windows function properly at all times. Thanks, Eric
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

