Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtQuick 2 with static build on Windows results in some widgets being black
Qt 6.11 is out! See what's new in the release blog

QtQuick 2 with static build on Windows results in some widgets being black

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 545 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.
  • F Offline
    F Offline
    fbaqt
    wrote on last edited by
    #1

    I'm wondering if anyone else has run in to this.

    We have built a static version of Qt 5.8 on Windows, using ANGLE (exclusively) to render the UI. About a week ago, we had widgets start to render with black backgrounds, and sometimes black text on black backgrounds. Initially, I thought something had changed in a form that was causing the problem, but builds on Linux, Mac, and Android all render perfectly fine, which would seem to indicate that a form change isn't the culprit.

    According to the developer that was working on QtQuick changes at the time this started to happen, he had added some animations for changing SOME of the colors that seem to be impacted. The animations he changed were animated using a QML singleton that provided style information to widgets. We have since backed out those changes, but the problem remains.

    Has anyone else seen this, and fixed it? If not, any suggestions on how to debug the problem? (I'm not seeing any warnings or errors on the console, and nothing in our logs that would indicate there is a problem.)

    Thanks!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fbaqt
      wrote on last edited by
      #2

      I think we figured it out. It appears that the issue was a combination of a bug, and the QML caching in Qt 5.8. It didn't impact the other OS versions because we were actually building those with Qt 5.6. We added the suggestion from this stack overflow question to hopefully fix it :

      https://stackoverflow.com/questions/41922581/can-qml-caching-in-qt-5-8-be-disabled-for-a-particular-project

      1 Reply Last reply
      1

      • Login

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