So I felt all warm and fuzzy inside after reading that Qt3D has re-emerged in a v2.0 and is in fact becoming a part of Qt5 soon and that parts of it is already available for testing as a tech preview.
I set out with a simple plan, I would have Qt3D working inside a widget in my existing C++/widgets based application. However the only example I could find that shows how to use Qt3D from C++ is called basicshapes-cpp, and it shows some shapes rendered in a separate OpenGL/Qt3D prepared window
(class that extends QWindow
) as opposed from a QWidget
.
Now I read about the role of QWindow
vs. QWidget
and how it all hangs together neatly, but I am still struggling to understand how I can port the Qt3D code from the basicshapes-cpp
program to run inside a QWidget
. What are the basic steps that need to observed?