Qt 3d example error
-
@RUXX said in Qt 3d example error:
can anyone tell me where can i modify things in my code to resolve the above errors
The error messages actually tell you the exact file and line number. And from the error message and the link I gave you it should be clear that it is about the Qt3DCore::QBuffer constructor. So, simply check how the constructor looks like now (in the link I gave you) and change the code accordingly. Hint: you need to remove the VertexBuffer parameter from the constructor call...
-
@RUXX So, did you add (like the documentation shows, which you should consult)
#include <Qt3DCore/QBuffer>
to cubesphere.cpp?
And please if you post errors always post them as text, not pictures. And always post the very first error message.
-
@RUXX said in Qt 3d example error:
yes i have included <Qt3DCore/ QBuffer> in .cpp file
Does it work now or did you already include it before and it does not build?
-
@RUXX said in Qt 3d example error:
The errors are given below: ....\projects\cubespheretextures\src\cubesphere.cpp:58: error: C2065: 'VertexBuffer': undeclared identifier
This was already explained before, I will not repeat the explanation...