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. Flicker on Windows 7 with Aero disabled when moving any window over a Qt Quick based window - a bug in qwindowswindow.cpp?
Forum Updated to NodeBB v4.3 + New Features

Flicker on Windows 7 with Aero disabled when moving any window over a Qt Quick based window - a bug in qwindowswindow.cpp?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 440 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Surka
    wrote on last edited by Surka
    #1

    Hi,

    I am new to Qt Quick. It is really helpful for me to prototype UI part for my project.

    But I found such an issue - when moving any window over a Qt Quick based window, I saw horrible flickers. And this issue only appears when Areo of Windows 7 is disabled.

    I looked into Qt 5.5's source code and found the following problematic lines in qwindowswindow.cpp, from line 1503.

    bool QWindowsWindow::handleWmPaint(HWND hwnd, UINT message,
    WPARAM, LPARAM)
    {
    // Ignore invalid update bounding rectangles
    if (!GetUpdateRect(m_data.hwnd, 0, FALSE))
    return false;
    if (message == WM_ERASEBKGND) // Backing store - ignored.
    return true;
    PAINTSTRUCT ps;

    The first 'if' statement returning false makes the second 'if' statement failed in some case. Then Windows refreshes background for QWindow with some system color. This should be an unexpected behavior.

    After exchanging the two 'if' statements, the flicker goes away.

    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