Geometric shapes provided by the Qt3DExtras module are great for prototyping. As we saw, these mesh generators come in handy when you want to create and test a new game quickly. However, a real game usually contains more complex figures than spheres and cubes. The meshes are usually prepared using specialized 3D modelling software. Qt 3D provides wide capabilities for importing 3D data from external files.
The first way of importing such data is the Mesh component. You only need to attach this component to an entity and specify the path to the file using the source property. As of Qt 5.10, Mesh supports OBJ, PLY, STL, and Autodesk FBX file formats.
As always, you can use a real filename or a Qt resource path. However, note that the source property expects an URL, not a path. A correct absolute resource path should start with qrc:/, and an...