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. QML element resize cause flicker on MacOS
Forum Updated to NodeBB v4.3 + New Features

QML element resize cause flicker on MacOS

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
resizemacosflicker
1 Posts 1 Posters 400 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.
  • Y Offline
    Y Offline
    yunuszhang
    wrote on 4 Oct 2022, 13:00 last edited by
    #1

    Create Rectangle element. On resize, the entire window will flicker (briefly filled with white color). If other elements are present on the scene, they will flicker too.

    This happens on Mac OS X. And even a simple code snippet like follows can cause this problem.

    I produce a whole example in attachment. Please pay more attention to RIGHT BORDER in the video. When I drag left border from left to right, the right border will flicker. Same behavior on bottom border. Same behavior on custom QQuickPaintedItem with "fillColor" property setting to "red". Same behavior on WebEngineView. And all WebEngineView related QT Tutorial could reproduce this flicker problem.

    In fact, there is always an awful behavior when resizing qml item on MacOS 12.5.

    code_text

    Window {
        width: 500
        height: 500
        visible: true
        Rectangle {
            anchors.fill: parent
            color: "red"
        }
    }
    

    This may be a platform specific issue since "software" render backend is okay while use default render backend(Metal) will cause this problem.

    I would appreciate it if you could give me an another workaround since I must use Metal to render my app.

    截屏2022-10-04 20.59.11.png

    1 Reply Last reply
    0

    1/1

    4 Oct 2022, 13:00

    • 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