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. [OSX] Window is blank until forced repaint
Forum Update on Monday, May 27th 2025

[OSX] Window is blank until forced repaint

Scheduled Pinned Locked Moved Solved QML and Qt Quick
cmakequickqmlosxmac
3 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    mbise1993
    wrote on last edited by
    #1

    I'm trying to get up and running with QtQuick and CMake on OSX Mojave (10.14). I'm hitting an issue where when I run my app, the window is displayed but it is completely blank. After doing something to force a repaint (e.g. resizing the window), the content is shown correctly. I've put together a minimal project using CMake to demonstrate the issue, which can be found here. Does anyone have any ideas on what the problem could be? I'm thinking its some configuration setting I'm missing in CMake because when I run the QtQuick example projects, they work fine. But I can't seem to track it down.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kai Nickel
      wrote on last edited by
      #2

      Do you use Qt 5.12? I just created a QTBUG that looks very similar to your issue:

      https://bugreports.qt.io/browse/QTBUG-72387

      You may want to set "QSG_RENDER_LOOP=windows" as a workaround. (Worked for me at least.)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbise1993
        wrote on last edited by
        #3

        It does look like a similar issue. I was able to find a workaround thanks to this bug report. Setting the target OSX version to 10.12 in CMake did the trick.

        1 Reply Last reply
        0

        • Login

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