Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to force sync-render after menu is hidden?
Forum Updated to NodeBB v4.3 + New Features

How to force sync-render after menu is hidden?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
renderrepaintrender loop
1 Posts 1 Posters 321 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tom asso
    wrote on 22 Jun 2020, 19:36 last edited by Tom asso
    #1

    My app uses the “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!

    1 Reply Last reply
    0

    1/1

    22 Jun 2020, 19:36

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved