Recently I tried to compile my Qt static libraries with both -no-angle
and -no-opengl
. I first thought that it would not compile. But unexpectedly, Qt (5.7) compiled just fine. I could also compile my application (using many QtWidgets).
To my surprise I could not see any difference with my Angle based Qt app. No lags, no glitches, my QtCharts were displaying as always.
I could not find any definitive answer on the web. but I have two guesses:
What is going on here ?
What happens? In your case nothing. Qt widgets don't use OpenGL behind your back. You have to explicitly force its use in a given widget stack by using the QOpenGlWidget
as the top level widget. By default, you're using the CPU-based raster rendering backend - as you noted, it performs quite well.
Compiling Qt without angle and OpenGL support is a good way to make your application smaller if you don't use OpenGL :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With