Qt5 Desktop app not rendering widgets on Windows 7
-
What: Qt Desktop application (standard widgets, not QML)
Qt version: 5.15.2, compiled with msvc2019 toolchain in release mode.Compile flags:
-v
-release
-opensource
-nomake
examples
-opengl
desktop
-platform
win32-msvcUpdated from 5.6 to 5.15.2 earlier this year, app works ok on Windows 10 and 8 but fails to render on Windows 7. Code is 95% the same, minor changes and web engine added as dependency but not actually used anywhere (sitting in a hidden tab for future use).
Instead, it renders whatever is in the background at the window position. What is funny is that it looks like all widgets are there and tooltips work, if you know where the buttons are you can even click them. So the app is fully functional except widgets are not rendering.
See attached screenshot, what you see is desktop background rendered. I tested in a Win7 32bit VM after getting reports from a few users who are still on that operating system.
I did a check with dependency walker and all libraries are present as they should be, just some bluetooth dll etc. as a sub-dependency of web engine dll is missing. Doubt it has anything to do with it.
I am not sure whether DX or opengl is in use.
Any pointers how to debug this?
-
@cen1 said in Qt5 Desktop app not rendering widgets on Windows 7:
Any pointers how to debug this?
As always - simplify your code until it works fine. Or start with a minimal app and add stuff until it stops working.
-
Because your VM has no real OpenGL support and therefore needs software rendering. Explained in the docs.
-
@Christian-Ehrlicher true for my VM but initial bug report came from 2 people using their desktop machines which they also use for gaming, including opengl games. So I am fairly certain they have opengl acceleration present.
-
Just try it out