IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

DebugView QML Type

View to show render statistics.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

DebugView QML Type

  • Import Statement: import QtQuick3D.Helpers

  • Inherits:: Rectangle

Detailed Description

This helper allows viewing render performance statistics of a View3D. It shows the FPS, sync and render times.

For example, the following snippet shows how a DebugView can be added that shows its information in the top-left corner of the Qt Quick scene:

 
Sélectionnez
View3D {
    id: v3d
    anchors.fill: parent
    camera: camera
    PerspectiveCamera {
        id: camera
        position: Qt.vector3d(0, 0, 600)
    }
    ...
}
DebugView {
    source: v3d
}

Property Documentation

 

source : var

Specifies the source View3D to show the statistics from.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+