ViewportThe Viewport item defines the logical viewport for a 3D scene. It includes all necessary references and parameters for the contents of the scene, as well as drawing and painting functions More... Inherits Item Viewport instantiates the C++ class Viewport This type was introduced in Qt 4.8. Detailed DescriptionThe Viewport item is usually the outermost in a 3D scene, specifying the size of the view, the camera position, lights, and the main 3D object: import QtQuick 2.0 import Qt3D 1.0 Viewport { width: 640; height: 480 camera: Camera {} light: Light {} Item3D { mesh: Mesh { source: "meshes/teapot.bez" } effect: Effect {} } } See also Camera. |