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

DelegateChoice QML Type

Encapsulates a delegate and when to use it.

This type was introduced in Qt 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

DelegateChoice QML Type

  • Import Statement: import Qt.labs.qmlmodels

  • Since:: Qt 5.12

Detailed Description

The DelegateChoice type wraps a delegate and defines the circumstances in which it should be chosen.

DelegateChoices can be nested inside a DelegateChooser.

See Also

See also DelegateChooser

Property Documentation

 

column : int

This property holds the value used to match the column value of model elements.

delegate : Component

This property holds the delegate to use if this choice matches the model item.

index : int

This property holds the value used to match the index value of model elements. This is effectively an alias for row.

See Also

See also row

roleValue : variant

This property holds the value used to match the role data for the role provided by DelegateChooser::role.

row : int

This property holds the value used to match the row value of model elements. With models that have only the index property (and thus only one column), this property should be intended as an index, and set to the desired index value.

Setting both row and index has undefined behavior. The two are equivalent and only one should be used.

See Also

See also index

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