Unable to build an example code (Project ERROR: This example requires Qt to be configured with -opengl desktop)
-
wrote on 28 Jul 2021, 12:10 last edited by
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 ? -
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 ?wrote on 28 Jul 2021, 20:54 last edited by@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.
-
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.
wrote on 28 Jul 2021, 21:21 last edited by@SGaist I am downloading Sources from maintenance tool what I have to do after that.Or Will it fix the error just by downloading
-
First try to for the use of OpenGL.
Otherwise, you will have to build Qt itself.
4/6