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

ItemModelScatterDataProxy QML Type

Proxy class for presenting data in item models with Scatter3D.

This type was introduced in QtDataVisualization 1.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ItemModelScatterDataProxy QML Type

  • Import Statement: import QtDataVisualization 1.4

  • Since:: QtDataVisualization 1.0

  • Inherits:: ScatterDataProxy

  • Instantiates:: QItemModelScatterDataProxy

  • Group: ItemModelScatterDataProxy is part of datavisualization_qml

Detailed Description

This type allows you to use AbstractItemModel derived models as a data source for Scatter3D.

The data is resolved asynchronously whenever the mapping or the model changes. QScatterDataProxy::arrayReset() is emitted when the data has been resolved.

For more details, see QItemModelScatterDataProxy documentation.

Usage example:

 
Sélectionnez
ItemModelScatterDataProxy {
    itemModel: model // E.g. a list model defined elsewhere containing point coordinates.
    // Mapping model roles to scatter series item coordinates.
    xPosRole: "xPos"
    yPosRole: "yPos"
    zPosRole: "zPos"
}

See Also

Property Documentation

 

itemModel : model

The item model to use as a data source for Scatter3D.

rotationRole : string

The item model role to map into item rotation. The model may supply the value for rotation as either variant that is directly convertible to quaternion, or as one of the string representations: "scalar,x,y,z" or "@angle,x,y,z". The first format will construct the quaternion directly with given values, and the second one will construct the quaternion using QQuaternion::fromAxisAndAngle() method.

rotationRolePattern : regExp

When set, a search and replace is done on the value mapped by the rotation role before it is used as item rotation. This property specifies the regular expression to find the portion of the mapped value to replace and rotationRoleReplace property contains the replacement string.

See Also

rotationRoleReplace : string

This property defines the replace content to be used in conjunction with rotationRolePattern. Defaults to an empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegularExpression &rx, const QString &after) function documentation.

See Also

xPosRole : string

The item model role to map into the X position.

xPosRolePattern : regExp

When set, a search and replace is done on the value mapped by the x position role before it is used as an item position value. This property specifies the regular expression to find the portion of the mapped value to replace and xPosRoleReplace property contains the replacement string.

See Also

xPosRoleReplace : string

This property defines the replace content to be used in conjunction with xPosRolePattern. Defaults to an empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegularExpression &rx, const QString &after) function documentation.

See Also

yPosRole : string

The item model role to map into the Y position.

yPosRolePattern : regExp

When set, a search and replace is done on the value mapped by the y position role before it is used as an item position value. This property specifies the regular expression to find the portion of the mapped value to replace and yPosRoleReplace property contains the replacement string.

See Also

yPosRoleReplace : string

This property defines the replace content to be used in conjunction with yPosRolePattern. Defaults to an empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegularExpression &rx, const QString &after) function documentation.

See Also

zPosRole : string

The item model role to map into the Z position.

zPosRolePattern : regExp

When set, a search and replace is done on the value mapped by the z position role before it is used as an item position value. This property specifies the regular expression to find the portion of the mapped value to replace and zPosRoleReplace property contains the replacement string.

See Also

zPosRoleReplace : string

This property defines the replace content to be used in conjunction with zPosRolePattern. Defaults to an empty string. For more information on how the search and replace using regular expressions works, see QString::replace(const QRegularExpression &rx, const QString &after) function documentation.

See Also

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