Unable to build an example code (Project ERROR: This example requires Qt to be configured with -opengl desktop)
-
Just installed qt on windows was looking through some examples but an example project named boxes gave this error I looked at docs they said run configure.bat -opengl desktop but I don't see any batch file in my installation anywhere?
-
Hi and welcome to devnet,
That file is part of the sources.
Which example is that ?
Which version of Qt do you have ?
What kind of graphics card are you using ? -
@SGaist My Qt version is 5.15.2 . Graphics card : Integrated Intel uhd graphics 620. This is the example location I was trying to build Qt\Examples\Qt-5.15.2\widgets\graphicsview\boxes. I download installer then selected my Qt version to download So I think it is precompiled (Can I change configuration opton in it?).
-
You can try forcing the backend to use OpenGL.
Here the alternative is to rebuild Qt and you need to download the source using the maintenance tool for that.
-
First try to for the use of OpenGL.
Otherwise, you will have to build Qt itself.