[Interest] How to force sync-render after menu is hidden?

Tom O'Reilly oreilly at mbari.org
Mon Jun 22 22:18:43 CEST 2020

My app uses the [ https://www.kdab.com/integrate-opengl-code-qt-quick-2-applications-part-2/ | “underlay approach” described here; ] the app intercepts QQuickWindow::beforeSynchronizing and QQuickWindow::beforeRendering to draw “custom” OpenGL objects before QML-defined items are rendered. Thus the QML items are drawn after - i.e. “on top” of - the custom OpenGL. 

The QML defines a MenuBar with multiple menus and items (actions). The problem is that after I select a menu item, a blank space appears on the custom OpenGL object where the menu previously appeared. I.e. somehow I need to force another sync-render to happen after any menu goes away so that the custom OpenGL is rendered again. Does anyone know how I can do that? Thanks! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200622/f6280816/attachment.html>

More information about the Interest mailing list